Wednesday, April 14, 2021

How to write a Lets encrypt / Certbot

Write like below to file

cp -f <in_path>cert.pem <out_path>cert.pem

cp -f <in_path> fullchain.pem <out_path> fullchain.pem 

cp -f <in_path> privkey.pem <out_path> privkey.pem 


#for nginx merge the chain and cert to a single file.

cat cert.pem fullchain.pem >newcert.pem


This file needs execute permission, give the permission like below

sudo chmod +x post-renew.sh 



references:

No comments:

Post a Comment