He creado un certificado autofirmado como este:
#! / Bin / bashEXPIRE = 3650si [$ # -gt 1]; entoncesEXPIRE = $ 2fimkdir -p $ 1
cd $ 1openssl genrsa 2048> $ 1. llave
openssl req -new -x509 -nodes -sha1 -days $ EXPIRE -key $ 1. clave> $ 1. cert
openssl x509 -noout -fingerprint -text <$ 1. cert> $ 1. informacióngato $ 1. cert $ 1. clave> $ 1. pem
chmod 400 $ 1. clave $ 1. pem
Y configuré mi apache vhost para usar este certificado.
Ahora me pregunto qué archivo debo importar en el almacenamiento de un cliente (Chrome o Semalt) para decirle al navegador que todo está bien Source .