informatique:securite:generer_un_csr

Ceci est une ancienne révision du document !


Générer un CSR

openssl req -newkey rsa:2048 -subj /CN=example.com -nodes -keyout example.com.key -out example.com.csr

ou

CN="domain.tld"
FILE=cert-domain.tld
openssl req -newkey rsa:2048 -subj /CN=$CN -nodes -keyout $FILE.key -out $FILE.csr
CN="domain.tld"
FILE=cert-domain.tld
STATE=Val de Marne
VILLE=Joinville-le-Pont
PAYS=FR
ORGA=My Company
ORGA_UNIT=Service Informatique
openssl req -new -newkey rsa:2048 -nodes -out $FILE.csr -keyout $FILE.key -subj "/C=$PAYS/ST=$STATE/L=$VILLE/O=$ORGA/OU=$ORGA_UNIT/CN=$CN"
openssl req -noout -text -in server.csr
  • informatique/securite/generer_un_csr.1337163402.txt.gz
  • Dernière modification : 2012/05/16 10:16
  • de bn8