SkayaWiki

SelfSignedCertificate

JeromePetazzoni :: DerniersChangements :: DerniersCommentaires? :: ParametresUtilisateur :: http://www.enix.org/ :: Vous êtes ec2-3-143-244-83.us-east-2.compute.amazonaws.com

{
IFS=/ read SERVERNAME DAYS
openssl genrsa -out /tmp/ca.key 2048
openssl req -new -key /tmp/ca.key -out /tmp/ca.csr -subj /CN=$SERVERNAME/
openssl x509 -req -in /tmp/ca.csr -out /tmp/ca.cert -signkey /tmp/ca.key -days $DAYS
cat /tmp/ca.key /tmp/ca.cert > $SERVERNAME.pem
rm -f /tmp/ca.key /tmp/ca.csr /tmp/ca.cert
chmod 600 $SERVERNAME.pem
} <<< www.domain.com/365

NB : on peut spécifier /CN=www.toto.com/C=FR/O=TotoCorp?/ par exemple.
Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]