Skip to content
eddiehinkle.comWashington, DC MetroEst. 2015

Writing

Using Certbot with Nginx

I use to be able to use a --nginx command with Certbot to add https to my domains on my server. That plugin doesn't work correctly anymore and I always forget the command. So this is really a reminder for myself:

sudo certbot --authenticator standalone --installer nginx --pre-hook "service nginx stop" --post-hook "service nginx start"

If you are searching around for ways to get Certbot to work with your Nginx, I hope this helped you, because it sure is handy to remind me.

Tagged

  • tech
  • code-examples