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?

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.

×
1 answer

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

  • Thanks for your reply,

    I used the Ghost CMS one-click installer with Ubuntu 18.04.

    It automatically confiured a SSL cert for the non-www version of my domain, but I want to confiure one for the www version of my site.

    When I try and reissue a cert using sudo certbot --nginx -d domain.com -d www.domain.com

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

Submit an Answer