diff options
author | Bodo Möller <bodo@openssl.org> | 2002-09-10 07:36:52 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-09-10 07:36:52 +0000 |
commit | c2bbf275b2be79bcfccde4475331742e984c8e3b (patch) | |
tree | 557fe5e91987e073721f0cdd4d9bab05d40f0d81 /demos/ssltest-ecc/ECC-RSAcertgen.sh | |
parent | 9226e2187c14979352cb78886ab8f0a90b3aef46 (diff) |
1. switch from "-newkey ecdsa:..." to "-newkey ec:..."
2. automatically create required sub-directories
Submitted by: Vipul Gupta <Vipul.Gupta@sun.com>
Diffstat (limited to 'demos/ssltest-ecc/ECC-RSAcertgen.sh')
-rwxr-xr-x | demos/ssltest-ecc/ECC-RSAcertgen.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/demos/ssltest-ecc/ECC-RSAcertgen.sh b/demos/ssltest-ecc/ECC-RSAcertgen.sh index ce182e313d..b31a4f1ee0 100755 --- a/demos/ssltest-ecc/ECC-RSAcertgen.sh +++ b/demos/ssltest-ecc/ECC-RSAcertgen.sh @@ -19,6 +19,8 @@ COMBO_DIR=$CERTS_DIR CAT=/bin/cat # rm command RM=/bin/rm +# mkdir command +MKDIR=/bin/mkdir # The certificate will expire these many days after the issue date. DAYS=1500 TEST_CA_FILE=rsa1024TestCA @@ -38,6 +40,9 @@ TEST_CLIENT_DN="/C=US/ST=CA/L=Mountain View/O=Sun Microsystems, Inc./OU=Sun Micr # 4. [Optional] One can combine the cert and private key into a single # file and also delete the certificate request +$MKDIR -p $CERTS_DIR +$MKDIR -p $KEYS_DIR +$MKDIR -p $COMBO_DIR echo "GENERATING A TEST SERVER CERTIFICATE (ECC key signed with RSA)" echo "==============================================================" @@ -45,7 +50,7 @@ $OPENSSL_CMD ecparam -name $TEST_SERVER_CURVE -out $TEST_SERVER_CURVE.pem $OPENSSL_CMD req $OPENSSL_CNF -nodes -subj "$TEST_SERVER_DN" \ -keyout $KEYS_DIR/$TEST_SERVER_FILE.key.pem \ - -newkey ecdsa:$TEST_SERVER_CURVE.pem -new \ + -newkey ec:$TEST_SERVER_CURVE.pem -new \ -out $CERTS_DIR/$TEST_SERVER_FILE.req.pem $OPENSSL_CMD x509 -req -days $DAYS \ @@ -71,7 +76,7 @@ $OPENSSL_CMD ecparam -name $TEST_CLIENT_CURVE -out $TEST_CLIENT_CURVE.pem $OPENSSL_CMD req $OPENSSL_CNF -nodes -subj "$TEST_CLIENT_DN" \ -keyout $KEYS_DIR/$TEST_CLIENT_FILE.key.pem \ - -newkey ecdsa:$TEST_CLIENT_CURVE.pem -new \ + -newkey ec:$TEST_CLIENT_CURVE.pem -new \ -out $CERTS_DIR/$TEST_CLIENT_FILE.req.pem $OPENSSL_CMD x509 -req -days $DAYS \ |