mirror of
https://github.com/openssl/openssl.git
synced 2024-12-21 06:09:35 +08:00
df4439186f
Trim trailing whitespace. It doesn't match OpenSSL coding standards, AFAICT, and it can cause problems with git tooling. Trailing whitespace remains in test data and external source. Reviewed-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8092)
30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
|
|
# Create certificates using various algorithms to test multi-certificate
|
|
# functionality.
|
|
|
|
OPENSSL=../../../apps/openssl
|
|
CN="OpenSSL Test RSA SHA-1 cert" $OPENSSL req \
|
|
-config apps.cnf -extensions usr_cert -x509 -nodes \
|
|
-keyout tsha1.pem -out tsha1.pem -new -days 3650 -sha1
|
|
CN="OpenSSL Test RSA SHA-256 cert" $OPENSSL req \
|
|
-config apps.cnf -extensions usr_cert -x509 -nodes \
|
|
-keyout tsha256.pem -out tsha256.pem -new -days 3650 -sha256
|
|
CN="OpenSSL Test RSA SHA-512 cert" $OPENSSL req \
|
|
-config apps.cnf -extensions usr_cert -x509 -nodes \
|
|
-keyout tsha512.pem -out tsha512.pem -new -days 3650 -sha512
|
|
|
|
# Create EC parameters
|
|
|
|
$OPENSSL ecparam -name P-256 -out ecp256.pem
|
|
$OPENSSL ecparam -name P-384 -out ecp384.pem
|
|
|
|
CN="OpenSSL Test P-256 SHA-256 cert" $OPENSSL req \
|
|
-config apps.cnf -extensions ec_cert -x509 -nodes \
|
|
-nodes -keyout tecp256.pem -out tecp256.pem -newkey ec:ecp256.pem \
|
|
-days 3650 -sha256
|
|
|
|
CN="OpenSSL Test P-384 SHA-384 cert" $OPENSSL req \
|
|
-config apps.cnf -extensions ec_cert -x509 -nodes \
|
|
-nodes -keyout tecp384.pem -out tecp384.pem -newkey ec:ecp384.pem \
|
|
-days 3650 -sha384
|