An Enthusiastic Programmer

Create SSL certificates with acme in Linux

|

Deploying an HTTPS website requires you to have SSL certificates. The ramification of not being protected by SSL certificates is significant, and worldwide developers are using SSL certificates to encrypt the data transition of their websites. Reads official documents from scratch that can make people depressed. Today, I will illustrate a simple and effective way to create SSL certificates with acme.sh.

acme.sh installation

I am running the installation based on Debian Linux, and I already had Nginx installed on my Linux machine.

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

Issue your domain

~/.acme.sh/acme.sh  --issue  -d example.com  --webroot /usr/share/nginx/html/

Install certificate

~/.acme.sh/acme.sh --installcert -d example.com --key-file /etc/nginx/ssl/private.key --fullchain-file /etc/nginx/ssl/cert.crt

Review SSL certs

~/.acme.sh/acme.sh --renew -d example.com --force

Update acme.sh

~/.acme.sh/acme.sh --upgrade --auto-upgrade

if you want assign read, write, and execute permission to the user, run the command chmod -R 755 /etc/nginx/ssl/

fullscript:

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

~/.acme.sh/acme.sh  --register-account -m [email protected]

~/.acme.sh/acme.sh  --issue  -d example.com  --webroot /usr/share/nginx/html/

~/.acme.sh/acme.sh --installcert -d example.com --key-file /etc/nginx/ssl/private.key --fullchain-file /etc/nginx/ssl/cert.crt

~/.acme.sh/acme.sh --upgrade --auto-upgrade

chmod -R 755 /etc/nginx/ssl/

Comments