meta data de esta página
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Próxima revisión | Revisión previa | ||
| seguridad:letsencrypt:wildcards [2021/08/03 10:36] – creado lc | seguridad:letsencrypt:wildcards [2023/01/18 13:37] (actual) – editor externo 127.0.0.1 | ||
|---|---|---|---|
| Línea 4: | Línea 4: | ||
| Para solicitar un certificado en el entorno de pruebas de Let' s Encrypt ejecutamos: | Para solicitar un certificado en el entorno de pruebas de Let' s Encrypt ejecutamos: | ||
| < | < | ||
| - | < | + | < |
| + | |||
| + | < | ||
| + | |||
| Al ejecturar el comando, en la consola | Al ejecturar el comando, en la consola | ||
| < | < | ||
| - | < | + | <note >En strato |
| - | ==== Solicitar certificado para un equipo ==== | ||
| - | certbot certonly -d grecasa.net --noninteractive --standalone --dry-run --agree-tos --register-unsafety-without-email | ||
| + | ==== Configurar el certificado en nginx ==== | ||
| === Ficheros === | === Ficheros === | ||
| Fichero / | Fichero / | ||
| + | <sxh> | ||
| server { | server { | ||
| listen 80; | listen 80; | ||
| Línea 35: | Línea 38: | ||
| server { | server { | ||
| listen 443 ssl http2; | listen 443 ssl http2; | ||
| - | root /var/www/grecasa_net; | + | root /var/www/midominio_es; |
| index index.php index.html index.htm; | index index.php index.html index.htm; | ||
| server_name midominio.es www.midominio.es; | server_name midominio.es www.midominio.es; | ||
| Línea 45: | Línea 48: | ||
| ssl_prefer_server_ciphers On; | ssl_prefer_server_ciphers On; | ||
| - | ssl_certificate / | + | ssl_certificate / |
| - | ssl_certificate_key / | + | ssl_certificate_key / |
| - | ssl_trusted_certificate / | + | ssl_trusted_certificate / |
| ssl_stapling on; | ssl_stapling on; | ||
| ssl_stapling_verify on; | ssl_stapling_verify on; | ||
| add_header Strict-Transport-Security " | add_header Strict-Transport-Security " | ||
| } | } | ||
| + | </ | ||
| === Index.html === | === Index.html === | ||
| creamos el fichero | creamos el fichero | ||
| + | <sxh html> | ||
| < | < | ||
| < | < | ||
| Línea 65: | Línea 68: | ||
| </ | </ | ||
| </ | </ | ||
| + | </ | ||
| Creamos en/ | Creamos en/ | ||
| - | ln -s / | + | <sxh bash>ln -s / |
| ===== Referencias ===== | ===== Referencias ===== | ||
| * https:// | * https:// | ||