Add DSA support to mkcert.sh
authorDr. Stephen Henson <steve@openssl.org>
Fri, 17 Feb 2017 14:44:59 +0000 (14:44 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 17 Feb 2017 16:33:12 +0000 (16:33 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2667)

test/certs/mkcert.sh

index ee31bf0097007f779b69a154ae1a17fcfd882a48..e547274d0941e116dcf8e0ac923feac64d598300 100755 (executable)
@@ -48,6 +48,7 @@ key() {
         rsa) args=("${args[@]}" -pkeyopt rsa_keygen_bits:$bits );;
         ec)  args=("${args[@]}" -pkeyopt "ec_paramgen_curve:$bits")
                args=("${args[@]}" -pkeyopt ec_param_enc:named_curve);;
+        dsa)  args=(-paramfile "$bits");;
         *) printf "Unsupported key algorithm: %s\n" "$alg" >&2; return 1;;
         esac
         stderr_onerror \