Update: Using Certbot in HTTPS

⬇️notes how to install and configure certbot


recently, I wrote and updated several new websites, and certbot is frequently used. Here are some common commands I used.

rapid certificate:

note, nginx service must be stoped before certification, or the process will be terminated due to the port occupancy.

after certification, if certbot didn’t modify config automatically, serval lines should be added manually:

and an additional 301 should be added as well in server block:

then reload nginx:

revoke certification:


translated 2021-10-01

Leave a Reply