Sat, 24 Jul 2010 13:40:16 +0100
Initial commit (LuaSec 0.4)
0 | 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 |