Skip to main content

Installing AutoSSL for .app and .dev HSTS domains

Comments

3 comments

  • louish
    As a side note, I think I realized why my certificate didn't work when I moved the DNS to linode, and its because my CSR was generated by godaddy which I just found out bypasses the embedded IP address in the certificate and uses their name servers instead. When the DNS was changed, the embedded IP was not found in the certificate (since it was pointing to their dns servers to get the IP but the records were disabled/removed cause I changed the dns). To solve (this particular) issue, I would just need to re-key the certificate (with my server csr) at godaddy which doesn't require validation. Even though that 1 problem is fixed, I'm still confused at how to setup an AutoSSL certificate for the 1st time on a domain that requires https connections without going through the process of purchasing and install a real certificate just to get this to work.
    0
  • LucasRolff
    Whenever you add a domain to cPanel, it will issue a self-signed certificate for the domain, meaning it can also call the https endpoint of the site and pass validation. The certificate validation also doesn't actually listen to HSTS settings, so can still call over http anyway. The 4 .dev domains I have at least got issued a certificate without having to purchase anything.
    0
  • cPanelLauren
    When AutoSSL runs it automatically creates a new CSR, so I wouldn't think that would be the cause of the issue. When AutoSSL runs what is output in the AutoSSL logs at WHM>>SSL/TLS/Manage AutoSSL - > Logs (pending you have access to WHM) If you do not have access to WHM you might need to speak to your provider about why the SSL isn't being added. Whether or not DNS is hosted elsewhere, the HTTP DCV should complete, if you must have HTTPS (i.e., you have a forced redirect to https in place) you can add an exception in the .htaccess for cpaneldcv to allow that check to complete over http.
    0

Please sign in to leave a comment.