Not able to generate certificate with --nginx option

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command: sudo certbot --nginx

It produced this output:

Obtaining a new certificate
Performing the following challenges:
http-01 challenge for
Using default address 80 for authentication.
Waiting for verification…
Challenge failed for domain
http-01 challenge for
Cleaning up challenges
Some challenges have failed.


My web server is (include version): nginx version: nginx/1.6.3

The operating system my web server runs on is (include version): macos mojave 10.14.3

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): certbot 0.33.1

Additional Details

host has address has IPv6 address 2600:1f16:d83:1200:5f48:aa8e:f610:571d

I am able to create certificate manually and webroot, but when i am trying with nginx its giving above error

Hi @ketansomani

simple answer: Then use the webroot - option. If --nginx doesn't work, but webroot does, your configuration is buggy.

certbot run -a webroot -i nginx -w yourwebroot -d

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