diff options
| author | cvs2svn <admin@example.com> | 2018-11-07 01:08:50 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2018-11-07 01:08:50 +0000 |
| commit | 2035faf3f8aa95b888d9416c3cc7328c0ea18beb (patch) | |
| tree | f08a08d357c5d30455c569890f747c1d9b241316 /src/regress/usr.bin/openssl/testdsa.sh | |
| parent | be03b61c1b8f59ccdd34dbe5f6c6b30de697d28b (diff) | |
| download | openbsd-bluhm_20181106.tar.gz openbsd-bluhm_20181106.tar.bz2 openbsd-bluhm_20181106.zip | |
This commit was manufactured by cvs2git to create tag 'bluhm_20181106'.bluhm_20181106
Diffstat (limited to 'src/regress/usr.bin/openssl/testdsa.sh')
| -rw-r--r-- | src/regress/usr.bin/openssl/testdsa.sh | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/regress/usr.bin/openssl/testdsa.sh b/src/regress/usr.bin/openssl/testdsa.sh deleted file mode 100644 index a04ba171ff..0000000000 --- a/src/regress/usr.bin/openssl/testdsa.sh +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # $OpenBSD: testdsa.sh,v 1.2 2018/02/06 02:31:13 tb Exp $ | ||
| 3 | |||
| 4 | |||
| 5 | #Test DSA certificate generation of openssl | ||
| 6 | |||
| 7 | cd $1 | ||
| 8 | |||
| 9 | # Generate DSA paramter set | ||
| 10 | openssl_bin=${OPENSSL:-/usr/bin/openssl} | ||
| 11 | $openssl_bin dsaparam 512 -out dsa512.pem | ||
| 12 | if [ $? != 0 ]; then | ||
| 13 | exit 1; | ||
| 14 | fi | ||
| 15 | |||
| 16 | |||
| 17 | # Denerate a DSA certificate | ||
| 18 | $openssl_bin req -config $2/openssl.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key | ||
| 19 | if [ $? != 0 ]; then | ||
| 20 | exit 1; | ||
| 21 | fi | ||
| 22 | |||
| 23 | |||
| 24 | # Now check the certificate | ||
| 25 | $openssl_bin x509 -text -in testdsa.pem | ||
| 26 | if [ $? != 0 ]; then | ||
| 27 | exit 1; | ||
| 28 | fi | ||
| 29 | |||
| 30 | exit 0 | ||
