diff options
Diffstat (limited to 'src/regress/lib/libssl/testrsa.sh')
-rw-r--r-- | src/regress/lib/libssl/testrsa.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regress/lib/libssl/testrsa.sh b/src/regress/lib/libssl/testrsa.sh index 3f4c328acd..75e205a975 100644 --- a/src/regress/lib/libssl/testrsa.sh +++ b/src/regress/lib/libssl/testrsa.sh | |||
@@ -1,11 +1,11 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | #Test RSA certificate generation of ssleay | 3 | #Test RSA certificate generation of openssl |
4 | 4 | ||
5 | echo | 5 | echo |
6 | echo RSA paramters test - NOTE THAT THIS WILL ONLY WORK IF YOU HAVE | 6 | echo RSA paramters test - NOTE THAT THIS WILL ONLY WORK IF YOU HAVE |
7 | echo compiled libssl with the src-patent tree, currently living in | 7 | echo compiled libssl with the src-patent tree, currently living in |
8 | echo ~ryker/src-patent.tar.gz on cvs. | 8 | echo ~beck/src-patent.tar.gz on cvs. |
9 | echo | 9 | echo |
10 | echo This will *not* work with what\'s in the tree, rsa is not in that. | 10 | echo This will *not* work with what\'s in the tree, rsa is not in that. |
11 | echo | 11 | echo |
@@ -14,21 +14,21 @@ sleep 3 | |||
14 | cd $1 | 14 | cd $1 |
15 | 15 | ||
16 | # Generate RSA private key | 16 | # Generate RSA private key |
17 | ssleay genrsa -out rsakey.pem | 17 | openssl genrsa -out rsakey.pem |
18 | if [ $? != 0 ]; then | 18 | if [ $? != 0 ]; then |
19 | exit 1; | 19 | exit 1; |
20 | fi | 20 | fi |
21 | 21 | ||
22 | 22 | ||
23 | # Denerate an RSA certificate | 23 | # Denerate an RSA certificate |
24 | ssleay req -config $2/ssleay.cnf -key rsakey.pem -new -x509 -days 365 -out rsacert.pem | 24 | openssl req -config $2/openssl.cnf -key rsakey.pem -new -x509 -days 365 -out rsacert.pem |
25 | if [ $? != 0 ]; then | 25 | if [ $? != 0 ]; then |
26 | exit 1; | 26 | exit 1; |
27 | fi | 27 | fi |
28 | 28 | ||
29 | 29 | ||
30 | # Now check the certificate | 30 | # Now check the certificate |
31 | ssleay x509 -text -in rsacert.pem | 31 | openssl x509 -text -in rsacert.pem |
32 | if [ $? != 0 ]; then | 32 | if [ $? != 0 ]; then |
33 | exit 1; | 33 | exit 1; |
34 | fi | 34 | fi |