Generated certificate using certonly parameter

Hello,
I have generated a lets encrypt certificate using the the following command:
sudo certbot --manual -d domain.com --preferred-challenges dns certonly

I have then researched and read that certonly parameter does not attempt to install the certificate on your web server it just generates it.

So now I'm looking for a guide on how to install the generated certificate on my apache2 server.

Appreciate the help!

1 Like

If you already have a VirtualHost configured in Apache for domain.com, you can ask Certbot to install it:

certbot install --cert-name domain.com

Be aware also that certificates created via --manual (without --manual-auth-hook) will not automatically renew. You will have to repeat all the same steps 60-90 days from now, to avoid your certificate expiring.

If you can use a non-manual method to getting the certificate (like --apache or a DNS plugin), that would be vastly superior.

2 Likes

Hi _az,

Thanks for your suggestion and reply, really appreciate it.

Where can I find the certificate name for the --cert-name parameter?

sorry for my cluelessness but I'm new to web servers / certificate stuff.

1 Like

Installed the certificate by running the same command without the certonly option.

2 Likes

Cool! For completeness' sake, the certificate names are listed if you run certbot certificates.

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.