How to install the nginx module?

I’m using Ubuntu 16.04 LTS server installation.
Apparently no one uses nginx and Ubuntu, because not only is the basic installation steps incorrect in the Lets Encryot documentation, but it installs without the modules, and I don’t see any place that gives me a clue on how to get it installed.

On a minimal server installation of Xenial apt-add-repository doesn’t exists, so the ppa add and sigining has to be done by hand.

Edit the /etc/apt/sources.list and add

deb http://ppa.launchpad.net/certbot/certbot/ubuntu xenial main 
deb-src http://ppa.launchpad.net/certbot/certbot/ubuntu xenial main 

apt update will the display the "unsigned repository error:

W: GPG error: http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8C47BE8E75BCA694

Use the apt-key command to get that corrected - the last parameter of this command is the last 8 characters/digits of the NO_PUBKEY error from above.

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 75BCA694

apt update and then you can install certbot with apt.
(Please add this to your docs!)

However, after getting it installed, I still get this when trying to generate a cert:

# certbot --nginx --cert-name domain.name 
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested nginx plugin does not appear to be installed

Any pointers?

Did you also install python-certbot-nginx?

By the way, I'm not sure if the nginx plugin has left the alpha status yet, so that's probably the reason why the documentation doesn't list it.

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