Skip to main content

Letsencrypt SSL on CPanel auto renew and update on remote web server

Comments

17 comments

  • andrew.n
    Correct however as I understand you host the site on Windows? You can download certbot on Windows and generate the certificate directly there rather than on a cPanel based linux server.
    0
  • cPRex Jurassic Moderator
    Hey there! You're exactly correct - you would need to manually move over the new cert details to the remote location. If you had root access to the system you could use the file located at /var/cpanel/ssl/apache_tls/domain.com/combined as that filename stays consistent across SSL updates, but just changes with the new certificate data when that gets updated.
    0
  • jakeSC
    Correct however as I understand you host the site on Windows? You can download certbot on Windows and generate the certificate directly there rather than on a cPanel based linux server.

    Because these are client servers that we will probably not have access to so easily once we figure this out. Therefore, having certbot per machine renewing its own cert is not that easy to manage if something goes wrong.
    0
  • jakeSC
    Hey there! You're exactly correct - you would need to manually move over the new cert details to the remote location. If you had root access to the system you could use the file located at /var/cpanel/ssl/apache_tls/domain.com/combined as that filename stays consistent across SSL updates, but just changes with the new certificate data when that gets updated.

    Thank you for the clarification, can you be more elaborate about your method? I would love to understand more about it.
    0
  • cPRex Jurassic Moderator
    I didn't mean to imply I have an actual method that is pre-built to do this work, but I just wanted to point out that file already uses the combined style of certificates. You could use that file to setup some type of automation on your end so you could skip the step of combining the certificate files with your current process, if that makes things easier.
    0
  • jakeSC
    I didn't mean to imply I have an actual method that is pre-built to do this work, but I just wanted to point out that file already uses the combined style of certificates. You could use that file to setup some type of automation on your end so you could skip the step of combining the certificate files with your current process, if that makes things easier.

    I think I might resort to using certbot or acme to make certs since Cpanel has the same provider anyway. Do you suggest any of the two? What validation method gives the best automation and long-term unattended work? Thank you so much for your help me so far.
    0
  • cPRex Jurassic Moderator
    I personally don't have a recommendation as I can't really comment on non-cPanel tools. Other users might have some thoughts though!
    0
  • jakeSC
    I didn't mean to imply I have an actual method that is pre-built to do this work, but I just wanted to point out that file already uses the combined style of certificates. You could use that file to setup some type of automation on your end so you could skip the step of combining the certificate files with your current process, if that makes things easier.

    Welp thank you for your suggestions so far <3
    0
  • andrew.n
    then you would be having issues placing on those remotely as well :) There is no automatic way to renew and transfer the certificates. It might be possible with a script though which fetch the certificates from the cPanel server, place it on the windows one and restart/reload the services there to apply the changes. I think the easiest, most forward and most reliable solution is to get the cert renew directly from the destination server.
    0
  • jakeSC
    Correct however as I understand you host the site on Windows? You can download certbot on Windows and generate the certificate directly there rather than on a cPanel based linux server.

    After further researching, I can understand better about your suggestion. I wish I could use certbot but the automation part requires install the certificates into Windows Certification Store machine-level. This is why I am trying to get win-acme working. However, as noob as a person could be, I am really trying to get http-01 selfhosting method working. But it just seems to not work, not even manual DNS txt record would work.
    0
  • andrew.n
    There are even some online tools with which you can generate certificates like
    0
  • jakeSC
    There are even some online tools with which you can generate certificates like
    0
  • andrew.n
    Very well!
    0
  • kyliejourney
    There are even some online tools with which you can generate certificates like employee monitoring software
    0
  • jakeSC
    We also used punch salad, and zerossl.com as well. Can you please share what you and your company are up to? Perhaps it would help us choose something more suitable Thanks!

    I feel like andrew can answer this question much better than me my only situation i can give is that we offer a very small subset of businesses. And therfore we would usually look forward to simple methods of deploying yet cheap enough that it wouldnt be a burden
    0
  • kyliejourney
    I feel like andrew can answer this question much better than me my only situation i can give is that we offer a very small subset of businesses. And therfore we would usually look forward to simple methods of deploying yet cheap enough that it wouldnt be a burden

    Anyway, thanks for your feedback, Jake!
    0
  • andrew.n
    @kyliejourney I'm just trying to help Jake here :) It's great though that you monitor the health of your ranges with those tools as well!
    0

Please sign in to leave a comment.