How to provide online repository in HTTPS instead of only HTTP
1. Configure the FTP client (Below is a screenshot from Cyberduck)

2. Refer the below link for the HDP stack version
For ex: I'm interested in this repo
http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.0.0/hdp.repo
3. Navigate to the above path manually, right click the respective hdp.repo and select HTTPS URL.
In the below screen print I have showed the same and you'll download the tar file in HTTPS.

Hope this helps!
Thanks

