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