|
@@ -192,15 +192,17 @@ sed -i 's/DOMAIN_NAME_REPLACE/NOMBRE_DOMINIO/g' flowdat_deploy.sh
|
|
|
|
|
|
Correr certbot para obtener el certificado por primera vez:
|
|
Correr certbot para obtener el certificado por primera vez:
|
|
```
|
|
```
|
|
-certbot certonly --cert-name NOMBRE_DOMINIO --dns-google --dns-google-credentials /opt/installer/letsencrypt/key.json --server https://acme-v02.api.letsencrypt.org/directory -d "*.NOMBRE_DOMINIO" -d "NOMBRE_DOMINIO" --post-hook=./flowdat_deploy.sh
|
|
|
|
|
|
+certbot certonly --cert-name NOMBRE_DOMINIO --dns-google --dns-google-credentials /opt/installer/letsencrypt/key.json --server https://acme-v02.api.letsencrypt.org/directory -d "*.NOMBRE_DOMINIO" -d "NOMBRE_DOMINIO" --deploy-hook=/opt/installer/letsencrypt/flowdat_deploy.sh
|
|
```
|
|
```
|
|
**IMPORTANTE**: Reemplazar NOMBRE_DOMINIO con el dominio del cliente, ej: galvez.flowdat.net.
|
|
**IMPORTANTE**: Reemplazar NOMBRE_DOMINIO con el dominio del cliente, ej: galvez.flowdat.net.
|
|
|
|
|
|
-Para finalizar, Copiar el script al directorio de Hooks de LetsEncrypt; esto va a hacer que este se ejecute con cada renovación:
|
|
|
|
|
|
+Verificar que la siguiente línea aparezca entre las últimas a la salida del comando:
|
|
```
|
|
```
|
|
-cp flowdat_deploy.sh /etc/letsencrypt/renewal-hooks/deploy/
|
|
|
|
|
|
+Running deploy-hook command: /opt/installer/letsencrypt/flowdat_deploy.sh
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+...la cual indica que el hook se ejecutó. Eso significa que los certificados deberían haberse copiado a la carpeta de Nginx. Verificar con el navegador que el sitio web sea seguro.
|
|
|
|
+
|
|
Probar autorenovación:
|
|
Probar autorenovación:
|
|
```
|
|
```
|
|
certbot renew --dry-run
|
|
certbot renew --dry-run
|