diff options
| author | cvs2svn <admin@example.com> | 2008-07-28 23:44:12 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2008-07-28 23:44:12 +0000 |
| commit | daac2f633f49a45baa8412c5e4e71e594236e7b8 (patch) | |
| tree | c2b7593b6807015d5bd1bbe95841e718a3b3df42 /src/regress/lib/libssl/testrsa.sh | |
| parent | 10837c3c47f1b9d7d1a061fff2327a4e280ba338 (diff) | |
| download | openbsd-pre_openssl_0_9_8h.tar.gz openbsd-pre_openssl_0_9_8h.tar.bz2 openbsd-pre_openssl_0_9_8h.zip | |
This commit was manufactured by cvs2git to create tag 'pre_openssl_0_9_8h'.pre_openssl_0_9_8h
Diffstat (limited to 'src/regress/lib/libssl/testrsa.sh')
| -rw-r--r-- | src/regress/lib/libssl/testrsa.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/regress/lib/libssl/testrsa.sh b/src/regress/lib/libssl/testrsa.sh deleted file mode 100644 index 17c6abf7ce..0000000000 --- a/src/regress/lib/libssl/testrsa.sh +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # $OpenBSD: testrsa.sh,v 1.6 2002/01/02 15:13:18 art Exp $ | ||
| 3 | |||
| 4 | |||
| 5 | #Test RSA certificate generation of openssl | ||
| 6 | |||
| 7 | cd $1 | ||
| 8 | |||
| 9 | # Generate RSA private key | ||
| 10 | openssl genrsa -out rsakey.pem | ||
| 11 | if [ $? != 0 ]; then | ||
| 12 | exit 1; | ||
| 13 | fi | ||
| 14 | |||
| 15 | |||
| 16 | # Generate an RSA certificate | ||
| 17 | openssl req -config $2/openssl.cnf -key rsakey.pem -new -x509 -days 365 -out rsacert.pem | ||
| 18 | if [ $? != 0 ]; then | ||
| 19 | exit 1; | ||
| 20 | fi | ||
| 21 | |||
| 22 | |||
| 23 | # Now check the certificate | ||
| 24 | openssl x509 -text -in rsacert.pem | ||
| 25 | if [ $? != 0 ]; then | ||
| 26 | exit 1; | ||
| 27 | fi | ||
| 28 | |||
| 29 | exit 0 | ||
