mkxcerts.sh 1.1 KB

1234567891011121314151617181920212223242526272829
  1. # Create certificates using various algorithms to test multi-certificate
  2. # functionality.
  3. OPENSSL=../../../apps/openssl
  4. CN="OpenSSL Test RSA SHA-1 cert" $OPENSSL req \
  5. -config apps.cnf -extensions usr_cert -x509 -nodes \
  6. -keyout tsha1.pem -out tsha1.pem -new -days 3650 -sha1
  7. CN="OpenSSL Test RSA SHA-256 cert" $OPENSSL req \
  8. -config apps.cnf -extensions usr_cert -x509 -nodes \
  9. -keyout tsha256.pem -out tsha256.pem -new -days 3650 -sha256
  10. CN="OpenSSL Test RSA SHA-512 cert" $OPENSSL req \
  11. -config apps.cnf -extensions usr_cert -x509 -nodes \
  12. -keyout tsha512.pem -out tsha512.pem -new -days 3650 -sha512
  13. # Create EC parameters
  14. $OPENSSL ecparam -name P-256 -out ecp256.pem
  15. $OPENSSL ecparam -name P-384 -out ecp384.pem
  16. CN="OpenSSL Test P-256 SHA-256 cert" $OPENSSL req \
  17. -config apps.cnf -extensions ec_cert -x509 -nodes \
  18. -nodes -keyout tecp256.pem -out tecp256.pem -newkey ec:ecp256.pem \
  19. -days 3650 -sha256
  20. CN="OpenSSL Test P-384 SHA-384 cert" $OPENSSL req \
  21. -config apps.cnf -extensions ec_cert -x509 -nodes \
  22. -nodes -keyout tecp384.pem -out tecp384.pem -newkey ec:ecp384.pem \
  23. -days 3650 -sha384