Monday, August 27, 2018

How to setup or change SSL Certificate in GoDaddy into another domain (HTTPS Transition)


Case: I have SSL certificate assigned to another domain. But I need to change SSL certificate for different domain.

Switch SSL certificate from one domain to another

   1.In GoDaddy account, if you have SSL certificate enabled then you can change the domain. But please do not click REVOKE link if you see it anywhere in SSL setup page. It will delete the SSL and remove it from your account, requiring you to purchase a new SSL or contact GoDaddy support team to re-add.

   2.For changing domain, please follow below steps:
a.       Go to SSL Certificate section in “My Products” page and click Manage button.


b.       Click on “Rekey and Manage” link.

c.       Select the 2nd option "Change the site that your certificate protects", enter the new Domain and click save. This process may take some hours to complete.


Install SSL Certificate for new domain in GoDaddy Hosting 

   3.For installing newly changes SSL certificate in new domain, please follow below steps
               
a.       Once it is done, then reach out to same page as mentioned in point 2#b. And then click “Download”. From this page, you can download new SSL certificate of requested store.



b.       In this “Download” page, you need to select the “Server type” as per the server configuration that your files are hosting in. You can get this information by going into “Certificate Checker” sub-page of “SSL Tools” page. Once you place the website URL and click “Scan My Site” then it will show you the “Server type” information as well. In general, PHP hosted server of GoDaddy itself is usually APACHE.

c.       Next, go to SSL/TLS settings page through cPanel of primary domain. Here, the downloaded certificate, in zip format, contains two files with extension “.crt” (one with a word “bundle” in file name and another with no word “bundle”). We must upload the certificate with no word "bundle". 

First [In My Products page]:
                        

                        Second [Click on hosting account and then cPanel link]:
                        
       
                        Third:
                        
       
                        Fourth [In SSL/TLS page]:
      
                       Fifth [Choose downloaded certificate (without bundle) in name and upload]:
                       
      


d.       The uploaded certificate will then list on the same “SSL Certificates” page. Now, click on "Install" link which redirected us to "Install/Manage SSL sites" page. Here, the new domain will get pre-selected with its respective value in certificate, key and authority bundle fields.

e.       Finally, in "Install/Manage SSL sites" page (with respective new domain information), click “Install Certificate”. The installed certificate will get listed in same page as like of upload certificate page.

Apply HTTPS redirect rule in APACHE HTACCESS

   4.Once the website gets successfully configured SSL certificate, the store will open in HTTPS protocol. But we also need to redirect every HTTP request into HTTPS. Thus, depending upon the server we need to setup redirect rules. For APACHE, please go to “File Manager” section of respective new domain. There, you will see HTACCESS file in root OR you need to create/upload new HTACCESS file (with DOT, like: .htaccess). And this HTACCESS file should contain the below rule.

  
      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
  

No comments:

Post a Comment