samples/certs/clientA.sh

changeset 0
f7d2d78eb424
equal deleted inserted replaced
-1:000000000000 0:f7d2d78eb424
1 #!/bin/sh
2
3 openssl req -newkey rsa:1024 -sha1 -keyout clientAkey.pem -out clientAreq.pem \
4 -nodes -config ./clientA.cnf -days 365 -batch
5
6 openssl x509 -req -in clientAreq.pem -sha1 -extfile ./clientA.cnf \
7 -extensions usr_cert -CA rootA.pem -CAkey rootAkey.pem -CAcreateserial \
8 -out clientAcert.pem -days 365
9
10 cat clientAcert.pem rootA.pem > clientA.pem
11
12 openssl x509 -subject -issuer -noout -in clientA.pem

mercurial