Nginx / digitalocean / wildcard cert

Continuing the discussion from Getting wildcard certificates with Certbot:

So I've got a digitalocean droplet running nginx and need a wildcard cert if I'm going to have any cert. I found examples like the above and have been able to get them to work, but if I stick a --nginx in there, it errors out.

Apparently --nginx is for doing challenges only. Is there a script to automate the cert install on nginx with wildcards, or am I expected to do that plumbing myself?

(The suggested way to use that dns credentials plugin is via Docker; I installed certbot with git clone https://github.com/certbot/certbot.git && cd certbot && python setup.py instead. The Docker install can't access the host system nginx to reconfigure it, so there are no examples of such.)

Hi,

If you use -nginx, an error will definitely pop up....

Since the Nginx flag is representing you choose to use Nginx (authenticator) to validate ACME challenge, currently the only way to obtain an certificate is via DNS validation.

You should use -i nginx for installation on Nginx. (i represent installer)

Thank you

1 Like

Hmmm.

certbot run -i nginx \
   --preferred-challenges dns-01 \
   --dns-digitalocean \
   --dns-digitalocean-credentials ~/.secret/certbot-digitalocean \
   -d '*.example.net' -d 'example.net'
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested nginx plugin does not appear to be installed

Edit:
Haha, that’s easily fixed. cd certbot/certbot-nginx && python setup.py install

Thanks, that worked.

2 Likes

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