]>
Commit | Line | Data |
---|---|---|
bcd92754 | 1 | #!/bin/sh |
18d71588 DSH |
2 | |
3 | # Create certificates using various algorithms to test multi-certificate | |
4 | # functionality. | |
5 | ||
bcd92754 JM |
6 | opensslcmd() { |
7 | LD_LIBRARY_PATH=../../.. ../../../apps/openssl $@ | |
8 | } | |
9 | ||
10 | opensslcmd version | |
11 | ||
12 | CN="OpenSSL Test RSA SHA-1 cert" opensslcmd req \ | |
18d71588 DSH |
13 | -config apps.cnf -extensions usr_cert -x509 -nodes \ |
14 | -keyout tsha1.pem -out tsha1.pem -new -days 3650 -sha1 | |
bcd92754 | 15 | CN="OpenSSL Test RSA SHA-256 cert" opensslcmd req \ |
18d71588 DSH |
16 | -config apps.cnf -extensions usr_cert -x509 -nodes \ |
17 | -keyout tsha256.pem -out tsha256.pem -new -days 3650 -sha256 | |
bcd92754 | 18 | CN="OpenSSL Test RSA SHA-512 cert" opensslcmd req \ |
18d71588 DSH |
19 | -config apps.cnf -extensions usr_cert -x509 -nodes \ |
20 | -keyout tsha512.pem -out tsha512.pem -new -days 3650 -sha512 | |
21 | ||
df443918 | 22 | # Create EC parameters |
18d71588 | 23 | |
bcd92754 JM |
24 | opensslcmd ecparam -name P-256 -out ecp256.pem |
25 | opensslcmd ecparam -name P-384 -out ecp384.pem | |
18d71588 | 26 | |
bcd92754 | 27 | CN="OpenSSL Test P-256 SHA-256 cert" opensslcmd req \ |
ef6b34be | 28 | -config apps.cnf -extensions ec_cert -x509 -nodes \ |
18d71588 DSH |
29 | -nodes -keyout tecp256.pem -out tecp256.pem -newkey ec:ecp256.pem \ |
30 | -days 3650 -sha256 | |
31 | ||
bcd92754 | 32 | CN="OpenSSL Test P-384 SHA-384 cert" opensslcmd req \ |
ef6b34be | 33 | -config apps.cnf -extensions ec_cert -x509 -nodes \ |
18d71588 DSH |
34 | -nodes -keyout tecp384.pem -out tecp384.pem -newkey ec:ecp384.pem \ |
35 | -days 3650 -sha384 |