1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[GUIDE] How to Setup Free SSL on Shared Hosting

Discussion in 'Black Hat SEO' started by scnonah, Mar 9, 2017.

  1. scnonah

    scnonah Jr. VIP Jr. VIP

    Joined:
    Jan 2, 2017
    Messages:
    224
    Likes Received:
    124
    Gender:
    Male
    Mods: Please move this thread if needed, there were a few places I though about placing it, but I figured this is where it would reach the most people.

    This is my first attempt at helping the awesome community here at BHW. Iv'e learned so much, I figured I better start trying to pay it back. Hope it helps.

    In this guide I wont discuss every single thing needed, but I really tried to make this detailed enough for someone who doesn't know a lot about SSL or hosting. I have tested this technique on Namecheap cPanel and GoDaddy cPanel and it works fine.

    This technique uses an in browser solution, it's nowhere near the most efficient way of adding ssl, but its free. If you have a lot of sites, you'll probably want to automate this with a script on your server.

    Step 1: Go to ZeroSSL.com.
    [​IMG]

    Step 2: Click start under "Free SSL Certificate Wizard"
    [​IMG]

    Step 3: Enter your email, domains and check the "Accept ZeroSSL TOS" and "Accept Let's Encrypt SA" boxes and click next. It you didnt enter it, it will ask you if you want to include the prefixed or non prefixed versions. I just say yes. It will generate your CSR (Cirtifircate Signing Request)
    [​IMG]

    Step 4: Click Download. and then Click Next again. It will generate your account key.
    [​IMG]

    Step 5: Click download again. And click next.


    Step 6: Now, this step is a little more difficult. Go to your cPanel and open file manager. In the root of your site (usually home/username/public_html/), you need to create a new folder. Name it ".well-known". It must be spelled exactly like that with the period in front.
    [​IMG]

    Step 7: Inside that ".well-known" folder, create another folder called "acme-challenge".
    [​IMG]

    Step 8: After created those folders, you'll need to create the files it tells you to. If your doing both www and non www, you'll need to create two files. The file's need to be named as the text under "File" states, with NO file extension.
    [​IMG]
    [​IMG]

    Step 9: Once the files are created, you'll need to paste the "text" inside of them. Right click the file and select edit, then paste the text.
    [​IMG]

    Step 10: To make sure you did it right, click on the file name on zerossl.com. It should open a page to your site and show the text you pasted in the files. Test each one.
    [​IMG]


    Step 11: Click Next. If all goes well, you should see this screen.
    [​IMG]

    Step 12: Scroll down and download your Domain Certificate and Private Key.
    [​IMG]

    Step 13: Go back to your cPanel. And go to your SSL section.
    [​IMG]


    Step 14: You should see this. Click on the "Generate, view, upload, or delete SSL certificates.".
    [​IMG]

    Step 15: Upload or paste the text from the "domain-cert.txt" file you downloaded on the last page of zerossl.com. Click save certificate.
    [​IMG]

    Step 16: If it saved properly you should see this.
    [​IMG]

    Step 17: Go back out to the SSL Section and click on "Manage SSL sites." under Install and Manage SSL for your site (HTTPS).
    [​IMG]

    Step 18: Click on "Browse Certificates". You should see something like this. Click "Use Certificate".
    [​IMG]

    Step 19: Then make sure the correct domain is selected.
    [​IMG]

    Step 20: Paste the text from the domain-key.txt file you downloaded on the last page of zerossl.com into the Private Key field.
    [​IMG]

    Step 21: Click "Install Certificate" and you should see this.
    [​IMG]

    Step 22: :eek:FINISHED! You should now be able to navigate to the https:// version of your site. And you're done adding SSL.

    Hope it helps someone, anyone!!!


    Tip: If you want to force your site to only allow https, which you should do. You can use an htaccess file. It will automatically redirect someone heading to the http version to the https version.
    See below.


    Important:If you have existing code in your .htaccess, add this above where there are already rules with a similar starting prefix.

    Code:
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
    Be sure to replace www.example.com with your actual domain name.

    To force a specific domain to use HTTPS, use the following lines of code in the .htaccess file in your website's root folder:

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example\.com [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
    Make sure to replace example\.com with the domain name you're trying force to https. Additionally, you need to replace www.example.com with your actual domain name.

    If you want to force SSL on a specific folder you can insert the code below into a .htaccess file placed in that specific folder:

    Code:
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{REQUEST_URI} folder
    RewriteRule ^(.*)$ https://www.example.com/folder/$1 [R,L]
    Make sure you change the folder reference to the actual folder name. Then be sure to replace www.example.com/folder with your actual domain name and folder you want to force the SSL on.
     
    • Thanks Thanks x 34
    Last edited: Mar 9, 2017
  2. emgh

    emgh Regular Member

    Joined:
    Jun 20, 2016
    Messages:
    263
    Likes Received:
    50
    Gender:
    Male
    A very good guide. For those to cba, Use CloudFlare!
     
    • Thanks Thanks x 1
  3. jiungsong

    jiungsong Jr. VIP Jr. VIP

    Joined:
    Jan 27, 2015
    Messages:
    1,918
    Likes Received:
    952
    Gender:
    Male
    Occupation:
    Living the IM Dream
    Location:
    California
    Wow, this is one of the better guides I've seen these days. Thanks.
     
    • Thanks Thanks x 1
  4. abhi007

    abhi007 Jr. VIP Jr. VIP

    Joined:
    Aug 31, 2010
    Messages:
    5,797
    Likes Received:
    3,918
    Location:
    Theatre of dreams :)
    Very thorough with all the screenshots included.
     
    • Thanks Thanks x 1
  5. scnonah

    scnonah Jr. VIP Jr. VIP

    Joined:
    Jan 2, 2017
    Messages:
    224
    Likes Received:
    124
    Gender:
    Male
    I tried. When I read guides sometimes there's just one or two things they don't mention in detail that I don't quite get. I feel the screenshots would help answer some of those questions.
     
    • Thanks Thanks x 1
  6. tux

    tux Jr. VIP Jr. VIP

    Joined:
    Jul 11, 2016
    Messages:
    1,219
    Likes Received:
    637
    Gender:
    Male
    • Thanks Thanks x 1
  7. Nut-Nights

    Nut-Nights Jr. VIP Jr. VIP

    Joined:
    Jun 20, 2013
    Messages:
    5,296
    Likes Received:
    3,375
    Location:
    Hell
    Home Page:
    Great share OP.
     
    • Thanks Thanks x 1
  8. stevesolo

    stevesolo Jr. VIP Jr. VIP

    Joined:
    Jul 3, 2014
    Messages:
    883
    Likes Received:
    240
    Gender:
    Female
    Occupation:
    Content Marketing
    Home Page:
    Awesome guide man. Your way of presentation is also nice @scnonah. Thanks for sharing this detailed guide.
     
    • Thanks Thanks x 1
  9. radiant13

    radiant13 Power Member

    Joined:
    May 19, 2010
    Messages:
    594
    Likes Received:
    350
    Is the reason for getting the SSL is to get a search ranking boost?
    Thanks for all the work you put in getting this guide together.
     
    • Thanks Thanks x 1
  10. gary2

    gary2 Jr. VIP Jr. VIP

    Joined:
    Jan 20, 2013
    Messages:
    1,666
    Likes Received:
    234
    Occupation:
    Inbound Marketer. Blogger. Author.
    Location:
    Near River
    Great guide. Thanks for sharing.
     
    • Thanks Thanks x 1
  11. soccerlover

    soccerlover Jr. VIP Jr. VIP

    Joined:
    Jun 12, 2014
    Messages:
    3,347
    Likes Received:
    1,738
    Gender:
    Male
    Occupation:
    Seo Analyst :D
    Location:
    ♥♥♥ BHW ♥♥♥
    Home Page:
    Very detailed and easy to understand guide.
    Great Job Buddy!
     
    • Thanks Thanks x 1
  12. anilpendu

    anilpendu Jr. VIP Jr. VIP

    Joined:
    Aug 20, 2012
    Messages:
    1,178
    Likes Received:
    859
    Occupation:
    Student
    Home Page:
    Awesome Share mate :)
     
    • Thanks Thanks x 1
  13. webhostingproviders

    webhostingproviders Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 8, 2013
    Messages:
    1,453
    Likes Received:
    380
    Occupation:
    Internet Marketer
    Location:
    Planet Earth
    Home Page:
    Thanks for the detailed guide, however isnt it easy with CloudFlare, you do all that within few minutes - just need to change DNS and installing plugin - thats all
     
  14. cheva

    cheva Regular Member

    Joined:
    Aug 22, 2009
    Messages:
    349
    Likes Received:
    404
    Location:
    Aiur
    great share! thanks for the taking the time
     
    • Thanks Thanks x 1
  15. terrycody

    terrycody Supreme Member

    Joined:
    Sep 29, 2012
    Messages:
    1,457
    Likes Received:
    400
    Occupation:
    marketer
    Location:
    Hell
    Very good guide, bookmarked for the further usage.
     
    • Thanks Thanks x 1
  16. Donbuffy

    Donbuffy Jr. VIP Jr. VIP

    Joined:
    Jul 23, 2012
    Messages:
    382
    Likes Received:
    68
    Gender:
    Male
    Occupation:
    Self Employed
    Amazing share OP, bookmarked for future use
     
    • Thanks Thanks x 1
  17. techn1k

    techn1k Junior Member

    Joined:
    Mar 4, 2013
    Messages:
    115
    Likes Received:
    33
    Awesome share.

    Is it as safe as normal, paid SSL? I mean, would you use it for sites where you process sensitive user information?
     
    • Thanks Thanks x 1
  18. Windmm

    Windmm Jr. VIP Jr. VIP

    Joined:
    Jun 10, 2013
    Messages:
    1,988
    Likes Received:
    808
    • Thanks Thanks x 2
  19. XxUnivaxX

    XxUnivaxX Jr. VIP Jr. VIP

    Joined:
    Jan 15, 2013
    Messages:
    2,534
    Likes Received:
    1,223
    Gender:
    Male
    Location:
    Basement
    Thanks Bookmarking it I am about to switch my websites to https and this should come handy.

    Interested in knowing about this.
     
    • Thanks Thanks x 1
  20. Fireu

    Fireu Registered Member

    Joined:
    Jul 8, 2015
    Messages:
    52
    Likes Received:
    5
    Gender:
    Male
    Great post
    Thanks
     
    • Thanks Thanks x 1