Document toolboxDocument toolbox

Metalmaster SSL certificate renewal

keywords: letsencrypt https metālmeistars certbot ssl whatever

Instrukcijas no ukraiņiem par to, kā Metalmaster jāatjauno sertifikāti.

# switch to root

sudo su

# close SERP

/home/avendo/hansa85_live/stop-hansa.sh

# get certs

certbot certonly --standalone --preferred-challenges http -d metalmaster.ee -d metalmaster.lt -d www.metalmaster.ee -d www.metalmaster.lt

# deleting old folder with links on cert files (hansa looks there)

rm -rf /etc/letsencrypt/live/metalmaster.ee

# after command "certbot certonly ..." creatings new folder in /etc/letsencrypt/live/metalmaster.ee-000X (where X - increment number receiving certs on certbot)

# we have to rename it to metalmaster.ee

mv /etc/letsencrypt/live/metalmaster.ee-000X /etc/letsencrypt/live/metalmaster.ee

#run SERP

/home/avendo/hansa85_live/run-hansa.sh