This script is designed to automate the process of issuing and installing SSL certificates using Let's Encrypt for domains using the acme.sh client.
Clone the Repository & Run:
rm -rf quick-ssl-setup/ ssl-setup.sh && git clone https://github.com/prihac/quick-ssl-setup.git && mv quick-ssl-setup/ssl-setup.sh /root/ && . /root/ssl-setup.sh
- Make sure that if you are using Nginx it is stopped to install the certificate and then be sure to enable it again.
systemctl start nginx
systemctl status nginx
The script will guide you through the process of updating packages, stopping Nginx, installing required packages, registering an account with Let's Encrypt, and issuing SSL certificates for your domains.
The script Quick SSL Setup includes the following functionalities:
-
Certificate Issuance: The script issues SSL certificates for specified domains using the acme.sh client.
-
Package Management: It updates and upgrades system packages, stops Nginx, and installs required packages such as curl and socat.
-
Let's Encrypt Integration: The script sets the default Certificate Authority (CA) to Let's Encrypt and registers an account with Let's Encrypt using the provided email address.
-
Multiple Domains: It supports the issuance of SSL certificates for multiple domains.
- Enter your email address for Let's Encrypt account registration.
- Enter the domain names for which you want to issue SSL certificates.
- If prompted, specify whether you want to issue certificates for additional domains.
- Make sure to run the script with appropriate permissions.
- Ensure that your server environment meets the requirements for Let's Encrypt certificate issuance.
For more details, refer to the Quick-SSL-Setup repository.