Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
Ambdós costats versió prèvia Revisió prèvia | |||
linux:certificados:start [02/11/2016 05:08] – [certificados de seguridad] mate | linux:certificados:start [23/12/2021 04:05] (actual) – suprimit mate | ||
---|---|---|---|
Línia 1: | Línia 1: | ||
- | = certificados de seguridad (apache) | ||
- | == conceptos | ||
- | * .key -> fichero conteniendo clave privada de un certificado | ||
- | * .csr -> fichero de petición para certificar por una entidad certificadora -> Certificate Signing Request | ||
- | * .crt -> fichero firmado por la entidad certificadora, | ||
- | == creacion | ||
- | - generar la clave privada:< | ||
- | * quitar la opción '' | ||
- | - generar el .csr: < | ||
- | * country: ES | ||
- | * State: Madrid | ||
- | * Locality: Madrid | ||
- | * Organization: | ||
- | * Organization Unit: ITs | ||
- | * Common Name: host.dominio.com | ||
- | * Email Address: email | ||
- | * VIGILAR QUE LOS DATOS DE DOMINIO Y CERTIFICADO COINCIDAN Y QUE TENGAMOS ACCESO AL CORREO Y TELÉFONO QUE CONSTAN | ||
- | - se pueden comprobar los datos del certificado con < | ||
- | - autofirmar el .csr para obtener el .crt (o enviar a un agente certificador reconocido) : < | ||
- | * en este caso, es para 1 año (365 days) | ||
- | - para comprobar los datos de un certificado: | ||
- | - Ejemplo de configuración apache: | ||
- | <code apache> | ||
- | < | ||
- | ServerAdmin hostmaster@domain.none | ||
- | ServerName secure.domain.none | ||
- | |||
- | SSLEngine on | ||
- | SSLProtocol all -SSLv2 | ||
- | SSLCipherSuite ALL: | ||
- | SSLCertificateFile | ||
- | SSLCertificateKeyFile / | ||
- | SSLCACertificateFile | ||
- | |||
- | |||
- | DocumentRoot / | ||
- | < | ||
- | Options Indexes FollowSymLinks MultiViews | ||
- | AllowOverride None | ||
- | Order allow,deny | ||
- | allow from all | ||
- | </ | ||
- | |||
- | |||
- | ErrorLog | ||
- | CustomLog / | ||
- | |||
- | # Possible values include: debug, info, notice, warn, error, crit, | ||
- | # alert, emerg. | ||
- | LogLevel debug | ||
- | |||
- | ServerSignature Off | ||
- | </ | ||
- | </ | ||
- | [[http:// |