CERTBOTπŸ”—

Use a different port with multiple domains:πŸ”—

certbot certonly --standalone --preferred-challenges http --http-01-port 8080 -d example.com,ww.example.com --pre-hook "systemctl stop apache2" --post-hook "systemctl start apache2

Removing a domain from a certificate (alias)πŸ”—

You have a certificate called domain.dk. It has the following domains included in the certificate:

You want to remove domain.us. To remove domain.us, you run below command. Notice how domain.us is omitted in the list.

certbot --cert-name domain.dk -d domain.com,domain.org,domain.eu

That’s it.

Acme.shπŸ”—

ref: https://github.com/Neilpang/acme.sh

InstallationπŸ”—

With curl:

curl https://get.acme.sh | sh

With wget:

wget -O -  https://get.acme.sh | sh

With git:

git clone https://github.com/Neilpang/acme.sh.git
cd ./acme.sh
./acme.sh --install

If all else fails:

Install zip and socat:

apt install zip socat

Download acme.sh:

wget --no-check-certificate https://github.com/Neilpang/acme.sh/archive/master.zip

Unzip:

unzip master.zip
cd acme.sh-x.x.x.

Install:

./acme.sh --install