Question

How do I reissue my SSL certificate?

Hello,

I have used the Ghost CMS one-click installer to create my droplet, this included an SSL certificate for the non-www version of my domain only.

I need a certificate for both www.domain.com and domain.com, so I need to reissue.

When I run sudo certbot --nginx -d example.com -d www.example.com

I get: The requested nginx plugin does not appear to be installed

How do I reissue my certificate?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @BigChief,

Depending on your server’s OS(Ubuntu/CentOS), you’ll need to run a command to install it.

Ubuntu If you are on an Ubuntu server, you’ll need to add the Certbot PPA to your list of repositories. To do so, run the following commands on the command line on the machine:

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update

Run this command on the command line on the machine to install Certbot.

sudo apt-get install certbot python-certbot-nginx

Run this command to get a certificate and have Certbot edit your Nginx configuration automatically to serve it, turning on HTTPS access in a single step.

sudo certbot --nginx

Or, just get a certificate

If you’re feeling more conservative and would like to make the changes to your Nginx configuration by hand, run this command.

sudo certbot certonly --nginx

CentOS

If you’re using RHEL or Oracle Linux, you’ll also need to enable the optional channel. On EC2, RHEL users can enable the optional channel by running the following command, substituting your EC2 region for REGION in the command:

yum -y install yum-utils
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

Run this command on the command line on the machine to install Certbot.

sudo yum install certbot python2-certbot-nginx

Run this command to get a certificate and have Certbot edit your Nginx configuration automatically to serve it, turning on HTTPS access in a single step.

sudo certbot --nginx

Or, just get a certificate

If you’re feeling more conservative and would like to make the changes to your Nginx configuration by hand, run this command.

sudo certbot certonly --nginx

That’s it, you are ready!

Regards, KDSYs