Editing
Let's Encrypt SSL Certificates on Namecheap Hosting (Legacy)
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Renewing the certificate === Let's Encrypt certificates expire every 90 days. ==== Automated ==== Some links that rely on `acme.sh` to renew certificates: * [https://github.com/Neilpang/acme.sh/wiki/Simple-guide-to-add-TLS-cert-to-cpanel Simple guide to add TLS cert to cpanel] * [https://www.juliogonzalez.es/lets-encrypt-ssl-certificates-at-cpanel-without-native-support-for-example-at-namecheap/352 Letβs encrypt SSL certificates at cPanel automatically and without native support] ==== Manually renewing ==== * SSH to the server. <ref>[https://gist.github.com/Shourai/bfd9f549a41c836c99c0c660c9271df6 Letsencrypt SSL certificate with namecheap hosting] - Gist</ref> * Navigate to the directory containing Let's Encrypt keys and scripts, e.g. `~/letsencrypt/letsencrypt_nosudo/` * Generate a new signed certificate: <syntaxhighlight lang="bash"> python sign_csr.py -f --public-key user.pub ./[DOMAIN]/domain.csr > ./[DOMAIN]/signed.crt </syntaxhighlight> * This will first prompt for an admin email address. * Then it will prompt for a series of commands to be entered, which create JSON files that are used by the signing script. * Then it will prompt for a file to be installed on the server for each of the subdomains included in the certificate. <br />'''Note'''—if the directory is password-protected the authorization will fail. For example: <syntaxhighlight lang="text"> STEP 5: Please update your server to serve the following file at this URL: -------------- URL: http://cms.littledamien.com/.well-known/acme-challenge/KzyAel9e7pAXhqYTpBRfqFDTt5JJ09QMnr6yF24H0_g File contents: "KzyAel9e7pAXhqYTpBRfqFDTt5JJ09QMnr6yF24H0_g.4D84KExUmpNjNtJm9FyfK_Ztf-JapYGv6c8uZ07hclA" -------------- </syntaxhighlight> In which case issue the command from the `letsencrypt-nosudo` directory: <syntaxhighlight lang="bash"> echo "KzyAel9e7pAXhqYTpBRfqFDTt5JJ09QMnr6yF24H0_g.4D84KExUmpNjNtJm9FyfK_Ztf-JapYGv6c8uZ07hclA" > ../../path/to/public_html/.well-known/acme-challenge/KzyAel9e7pAXhqYTpBRfqFDTt5JJ09QMnr6yF24H0_g </syntaxhighlight> ''(The three steps above are the ones that would need to be automated somehow. Possibly `acme.sh` provides an alternative method for satisfying Let's Encrypt's challenge.)'' After verifying each of the domains, a signed certificate is created. The certificate is installed with: <ref>[https://gist.github.com/Shourai/bfd9f549a41c836c99c0c660c9271df6#gistcomment-2351618 Using uapi tool to install certificates]</ref> <syntaxhighlight lang="bash"> crt=`cat ./[DOMAIN]/signed.crt | python urlencode.py` key=`cat ./[DOMAIN]/domain.key | python urlencode.py` uapi SSL install_ssl domain=[MYDOMAIN.TLD] cert="$crt" key="$key" </syntaxhighlight> ''Hint: Look for a script containing the commands immediately above in the directories dedicated to the domains to be signed, e.g. `~/letsencrypt/letsencrypt-nosudo/damienjay/install_cert`.'' After installing the certificate, it can be verified, and expired certificates can be removed by visiting '''cPanel''' > '''Security''' > '''SSL/TLS''' > '''Certficates (CRT)''' > '''Generate, view, upload, or delete SSL certificates'''
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information