Skip to content

Instantly share code, notes, and snippets.

@bandinopla
Last active January 24, 2024 17:06
Show Gist options
  • Save bandinopla/81b86a0e27649cf405c74ed5de7063df to your computer and use it in GitHub Desktop.
Save bandinopla/81b86a0e27649cf405c74ed5de7063df to your computer and use it in GitHub Desktop.
Use letsencrypt certificate in Namecheap hosting

Video tutorial/credit to Anatu Tech: https://www.youtube.com/watch?v=VPzxid4jRX0

  1. install https://github.com/acmesh-official/acme.sh
  2. go to your cpanel, in Terminal tool, type: .acme.sh/acme.sh --issue -d AAA -w /home/BBB/public_html/AAA/ --server letsencrypt where:
  • AAA = the domain for which you want to create the certificate
  • BBB = your namecheap username
  • Multiple domains? add -d AAA2 -d AAA3 etc, for each extra domain...
  1. execute, that will create files in a folder .acme.sh/<AAA>_ecc
  2. open that folder with the file manager in another tab
  3. on the main tab, go to the section "SSL/TLS" and click "Manage SSL sites."
  4. scroll down to "Install an SSL Website" and select the domain from the list.
  5. in the textarea "Certificate" copy and paste the contents of .acme.sh/<AAA>_ecc/<AAA>.cer
  6. in the textarea "Private Key" copy and paste the contents of .acme.sh/<AAA>_ecc/<AAA>.key
  7. hit "install certificate". Done. It should last 3 months after which you will have to repeat the process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment