From ad993f95f7233dab030ff796264396c977cb3248 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 26 Aug 2014 17:50:07 +0000 Subject: Update regress to follow openssl(1) move. --- src/regress/usr.bin/openssl/testdsa.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/regress/usr.bin/openssl/testdsa.sh (limited to 'src/regress/usr.bin/openssl/testdsa.sh') diff --git a/src/regress/usr.bin/openssl/testdsa.sh b/src/regress/usr.bin/openssl/testdsa.sh new file mode 100644 index 0000000000..32293d8ff3 --- /dev/null +++ b/src/regress/usr.bin/openssl/testdsa.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# $OpenBSD: testdsa.sh,v 1.1 2014/08/26 17:50:07 jsing Exp $ + + +#Test DSA certificate generation of openssl + +cd $1 + +# Generate DSA paramter set +openssl dsaparam 512 -out dsa512.pem +if [ $? != 0 ]; then + exit 1; +fi + + +# Denerate a DSA certificate +openssl req -config $2/openssl.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key +if [ $? != 0 ]; then + exit 1; +fi + + +# Now check the certificate +openssl x509 -text -in testdsa.pem +if [ $? != 0 ]; then + exit 1; +fi + +exit 0 -- cgit v1.2.3-55-g6feb