Como usar Let’s Encrypt en Namecheap
Si estás aquí, es por que ya te diste cuenta que NameCheap no nos ayuda por defecto con la instalación de certificados ssl gratuitos con Let's Encrypt, sus razones son simplemente comerciales, pero lo bueno es que te ofrece una forma para que puedas configurar los certificados SSL de LetsEncrypt utilizando ACME.sh. Te lo pasó a detallar a continuación:
1 - Habilite SSH para ingresar a su servidor de alojamiento compartido con su nombre de usuario de cpanel (puede obtener claves e iniciar sesión desde su terminal o usar la terminal de cpanel incorporada para un acceso rápido)
2- Obtener los certificados:
#Get acme.sh utility curl https://get.acme.sh | sh #Source the Environment variables source ~/.bashrc #Register your email with Lets's Encrypt to be notified any renewals issue acme.sh --register-account --accountemail email@example.com # At this moment a cron entry already has been setup for autorenewal which will auto renew after 60 days., You can update /dev/null to something like this if you need the log crontab -l | grep acme.sh 10 0 * * * "/home/_CPANEL_USERNAME_/.acme.sh"/acme.sh --cron --home "/home/_CPANEL_USERNAME_/.acme.sh" >> /home/_CPANEL_USERNAME_/.acme_cron_log
3. Emitir un certificado de prueba para comprobar si todo funciona
#webroot will be any directory in which your domain exist, give path accordingly. acme.sh --issue --webroot ~/public_html -d yourdomain.com --staging
4. Emitir un certificado actual
acme.sh --issue --webroot ~/public_html -d yourdomain.com --force #In ourput you will see success if all goes fine & key/Certs/chaincerts/csr will be stored under below location, you can refer those if you intend to apply those using cpanel GUI manually ~/.acme.sh/yourdomain.com/
acme.sh --deploy --deploy-hook cpanel_uapi --domain yourdomain.com
6.- Forzar https redirection:
vi ./yourdomain.com/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
Espero te sirva.!


Comentarios
Publicar un comentario