Enable https on nginx webserver using letsencrypt application

Hi,

I am running nginx webserver and i am enabling DV SSL letsencrypt certs to nginx webserver
is it ./letsencrypt-auto certonly --nginx -d example.com -d gitlab.example.com?

Best Regards,

Kaushal

You should use certbot-auto instead of letsencrypt-auto. Also, you can remove the “certonly” part.

Hi Jacob,

I am facing the below issue.

> [root@ip-172-31-22-159 letsencrypt]# ./certbot-auto certonly --standalone -d example.com -d gitlab.example.com

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for example.com
http-01 challenge for gitlab.example.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. example.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://example.com/.well-known/acme-challenge/F0sfnHCEVMErd5dedtIKqor8by9W4ojA9Upl_Jdn8wM: "

Well, you did exactly the opposite as what @jsha recommended. You didn't remove certonly, instead you left it there, but changed --nginx to --standalone.

To help you, we need to understand exactly what you're trying to do. For example, why the above changes? Do you understand what the difference is?

1 Like

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