Can the certbot nginx command be reissued after success

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 -d -d
It produced this output:
Failed for valid reason
I created CNAME incorrectly - used
Fix: using

But I tried the command (without second -d parameter www part)
sudo certbot --nginx -d

Certificate created successfully and updated nginx

I have issue with OAuth credentials (may be not a right forum for this)

But I want rerun - sudo certbot --nginx -d -d
Can I do it ? or do I need to run different steps ? please advice

Correct. This is not correct forum for oauth :slight_smile:

Yes, you can do that and certbot will ask whether you want to expand the cert and say yes to that.

But you must setup nginx properly for both names. Right now they respond differently to Let's Encrypt http challenge requests. In fact, your apex domain responds with an error http 502 Bad Gateway. You won't be able to get a cert for that using the http challenge with a 502 error.

Usually the www domain is just another name in the same server block as the apex. It can be a different server block it just usually is not. Example:


Hi, Thanks for your reply.
I turned off my server (reducing costs). I will spin now

If I rerun sudo certbot --nginx

thank you

I have rerun the command and selected E option
Your existing certificate has been successfully renewed, and the new certificate
has been installed.

1 Like

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