Skip to content

guhemama/cpanel-lets-encrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Cpanel Let's Encrypt

This script let's you generate Let's Encrypt certificates for your websites hosted with Cpanel - actually for any website. The only dependencies are PHP 5.3+, curl and OpenSSL.

This script is a modified version of https://github.com/analogic/lescript.

Usage

  1. Clone or download the repository somewhere in your webserver.
  2. Generate a pair of RSA keys.
  3. Export you private key to the PEM format, name it as account.pem and move it the script directory.
openssl rsa -in account.key -outform pem > account.pem
  1. Open the run.php file, and update the $domainWebroots array. The array keys are the domains you want to generate the certificate for and the array values are the domain web root directories (they are needed to create the ACME challenge files).
  2. Run the file with php run.php or through your browser.
  3. If everything was successful you will now see a directory named certs.
  4. Go to Cpanel's SSL/TLS section, then to Install and Manage SSL for your site.
  5. Select your website URL.
  6. Copy and paste the contents of the file cert.pem into the field Certificate: (CRT), the contents of private.pem into Private Key (KEY) and the contents of chain.pem into Certificate Authority Bundle: (CABUNDLE) (if needed).
  7. Click Install Certificate and enjoy your Let's Encrypt certificate. :P

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages