ptpb/pb

Certificate expired

Closed this issue · 4 comments

The LE certificate for ptpb.pw has expired

can confirm, firefox requires me to add exception.

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!

Closing, due to being permanently fixed.

crontab works great too