Forgot to generate my cert as www.domain.com


#1

Hello,

I did generate my certificate, update apache conf, running : ./certbot-auto
Everything is perfect expect I forgot to mention www.
Instead my certficate is domain.com instead of www.domain.com

How I can redo the cert ?
Should I revoke ?
What I should remove ?

Thank you,

jul


#2

Run the exact same certbot command you did before, except change “-d domain.com” to “-d domain.com -d www.domain.com”. Certbot will issue a new certificate, and should offer to save it in the same location as the old one. Then you just have to reload your web server or whatever. It may use a different directory instead, in which case you’d have to update your configuration.


#3

If you add the switch --expand to the command line, it should save the new certificate as a replacement for the old one, just with more names listed, which is easier to understand than having the old and new in separate places.


#4

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