How to install Certbot plugins?

First run

To find out where certbot is installed to. Or command -v certbot if you prefer.

Then run head /usr/bin/certbot and note what version of Python it’s using:

In my case, it was using Python 3.

I noticed from my pip output it was trying to install a Python 2.7 package:

So how do we get pip to install Python 3 packages instead? Just copy the instructions from here:

Now you should have the pip3 command, so run this instead:

And now try again:

Automatically renew Letsencrypt certificate with Certbot

https://certbot.eff.org/lets-encrypt/ubuntuxenial-apache

Generate wildcard certificate