0.5.0 • Published 5 years ago

csssl v0.5.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Cloud Sites SSL Certificate Generator

Create and validate a certificate in 1 minute!

By Ramses Moreno

This script is based in the article published in the Liquid Web Help Center: https://help.liquidweb.com/s/article/Installing-Let-s-Encrypt-SSL-in-Cloud-Sites

Instlallation

(only tested on MacOS X) 1. Install Certbot locally: https://certbot.eff.org/all-instructions/#macos-none-of-the-above 2. Test certbot is installed running in the shell (may ask for user creation):

sudo -H certbot certonly --manual --preferred-challenges http -d domain.com -d www.domain.com
  1. Install Cloud Sites SSL Certificate Generator globally (you will need to have npm already installed):
    npm install csssl -g

Running

This script will run certbot, upload the http challenges contents using SFTP to Cloud Sites and then read the generated content in /etc/letsencrypt to create a file with the certificated needed in Cloud Sites Control Panel 1. Have handly your Secure FTP username and password. The user used has to have access to the root of the account where the domains folders are created, because the script is going to look for these folders, like /www.domain.com/web/content 2. Run csssl using sudo, because certbot will need it that way

sudo csssl
  1. The shell will ask you for sudo password
  2. Provide the domains you will need certificates for separated by spaces, normally the www and not www variations of one domain, starting with the www variation because is going to be used to locate the remote folder to upload the challenges
  3. Provide the SFTP username and password for your Cloud Sites web (it will automatically connect to ftp2.ftptoyoursite.com server)
    Password:
    **** Cloud Sites SSL certificate Generation and validator using Certbot
    Please enter the domains you need certificates for, the first domain is going to be used as the directory for SFTP, for example "www.domain.com domain.com"
    Domains: www.domain.com domain.com
    SFTP username: theusername
    SFTP password: 
  4. The script will run certbot and upload the needed files to Cloud Sites.
  5. Once finished, the script is going to generate a file in current directory with the certificates needed in Cloud Sites Control Panel, for example www.domain.com.txt
  6. Open the generated txt file and copy / paste the certificates in each control panel fields (Certificate, Private Key and Intermediate), please note the intermediate certificate includes three certificates, copy all them in the field.
  7. There is no need to use a dedicated IP, so you could uncheck that checkbox.
  8. Thats all!
TODO:
  • Catch errors
  • Support certificate renewals
License:

MIT LICENSE

0.5.0

5 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago