How to manually renew a certificate?


#1

As far as I know there is no way to auto renew a certificate with cpanel on a shared hosting for free (if there is please let me know) so I need to renew my certificates manually but I don’t know how.
To get the certificates I used this online tool https://gethttpsforfree.com/ and I ran the commands on a vps.

And to renew them I tried using the same outputs and keys I got when I created the certificate but without success, in step 5 I get this error: Error: Something went wrong. Please go back to Step 1.

I’m clearly doing something wrong but I don’t know a lot about this and I could not find a way to do it.

Thanks


#2

I am not sure but I think all you have to do his this command when you are in the part were letsencrypt is installed:

./letsencrypt-auto --renew

Mine is install at:

/root/letsencrypt just cd to it.


#3

At the bottom, https://gethttpsforfree.com/ links to its source at https://github.com/diafygi/gethttpsforfree. There you can see:

TODO (pull requests welcome):

  • renew.html - A page with steps for renewing certificates

So it seems like the renewal page is just not done yet.

If you want/can use the letsencrypt-auto program instead, this worked for me (but alas I am not sure if it also works if you didn’t use letsencrypt-auto in the same directory when you got your first cert):

To test it:

./letsencrypt-auto certonly --renew --email my.email@example.org -a manual -d my-domain.example.org --dry-run --agree-tos

It will ask you to put a file on your server, that’s probably the same as step 4 of gethttpsforfree.com.

To really run it:

./letsencrypt-auto certonly --renew --email my.email@example.org -a manual -d my-domain.example.org

You can run this on a machine that is not your web server. You only need to put the verification file on the web server.


Can't renew certificate (client lacks sufficient authorization)
#5

I didn’t install the program but I will now, thanks


#6

Thank you for your reply, I think I can just make a new cert and then renew from the letsencrypt-auto program.


#7

Once renewed with CLI commands how and where did you install the certificates on Cpanel?