ptpb / pb

pb is a formerly-lightweight pastebin and url shortener
Other
549 stars 52 forks source link

Certificate expired #216

Closed blha303 closed 6 years ago

blha303 commented 6 years ago

The LE certificate for ptpb.pw has expired

Thunderbottom commented 6 years ago

can confirm, firefox requires me to add exception.

buhman commented 6 years ago

Because I'm obviously not responsible enough to do this manually on time, every time, the ptpb.pw deployment now automatically renews the LE certificate on-the-fly via https://github.com/GUI/lua-resty-auto-ssl.

May 16 02:49:42 ptpb nginx[998]: 2018/05/16 02:49:42 [debug] 1012#1012: *3 [lua] lets_encrypt.lua:45: issue_cert(): auto-ssl: dehydrated output: # INFO: Using main config file /etc/resty-auto-ssl/letsencrypt/config
May 16 02:49:42 ptpb nginx[998]: + Generating account key...
May 16 02:49:42 ptpb nginx[998]: + Registering account key with ACME server...
May 16 02:49:42 ptpb nginx[998]: Processing ptpb.pw
May 16 02:49:42 ptpb nginx[998]:  + Signing domains...
May 16 02:49:42 ptpb nginx[998]:  + Creating new directory /etc/resty-auto-ssl/letsencrypt/certs/ptpb.pw ...
May 16 02:49:42 ptpb nginx[998]:  + Creating chain cache directory /etc/resty-auto-ssl/letsencrypt/chains
May 16 02:49:42 ptpb nginx[998]:  + Generating private key...
May 16 02:49:42 ptpb nginx[998]:  + Generating signing request...
May 16 02:49:42 ptpb nginx[998]:  + Requesting authorization for ptpb.pw...
May 16 02:49:42 ptpb nginx[998]:  + 1 pending challenge(s)
May 16 02:49:42 ptpb nginx[998]:  + Deploying challenge tokens...
May 16 02:49:42 ptpb nginx[998]:  + Responding to challenge for ptpb.pw authorization...
May 16 02:49:42 ptpb nginx[998]:  + Challenge is valid!
May 16 02:49:42 ptpb nginx[998]:  + Requesting certificate...
May 16 02:49:42 ptpb nginx[998]:  + Checking certificate...
May 16 02:49:42 ptpb nginx[998]:  + Done!
May 16 02:49:42 ptpb nginx[998]:  + Creating fullchain.pem...
May 16 02:49:42 ptpb nginx[998]:  + Walking chain...
May 16 02:49:42 ptpb nginx[998]:  + Done!
buhman commented 6 years ago

Closing, due to being permanently fixed.

mathieu-aubin commented 6 years ago

crontab works great too