You can install Certbot using the instructions at
For generating the certificate, try running
certbot certonly --manual -d example.com -d www.example.com
(If you’re running certbot
as ./certbot-auto
, substitute ./certbot-auto
in the command line here.)
The -d
parameters should list all of the domains that you want to be covered by the certificate.