diff options
Diffstat (limited to 'src/lib/libssl/test/testss')
-rw-r--r-- | src/lib/libssl/test/testss | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/libssl/test/testss b/src/lib/libssl/test/testss index da62997a5f..8d3557f356 100644 --- a/src/lib/libssl/test/testss +++ b/src/lib/libssl/test/testss | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | digest='-mdc2' | 3 | digest='-md5' |
4 | reqcmd="../apps/openssl req" | 4 | reqcmd="../apps/openssl req" |
5 | x509cmd="../apps/openssl x509 $digest" | 5 | x509cmd="../apps/openssl x509 $digest" |
6 | verifycmd="../apps/openssl verify" | 6 | verifycmd="../apps/openssl verify" |
@@ -19,7 +19,16 @@ Ucert="certU.ss" | |||
19 | 19 | ||
20 | echo | 20 | echo |
21 | echo "make a certificate request using 'req'" | 21 | echo "make a certificate request using 'req'" |
22 | $reqcmd -config $CAconf -out $CAreq -keyout $CAkey -new #>err.ss | 22 | |
23 | echo "string to make the random number generator think it has entropy" >> ./.rnd | ||
24 | |||
25 | if ../apps/openssl no-rsa; then | ||
26 | req_new='-newkey dsa:../apps/dsa512.pem' | ||
27 | else | ||
28 | req_new='-new' | ||
29 | fi | ||
30 | |||
31 | $reqcmd -config $CAconf -out $CAreq -keyout $CAkey $req_new #>err.ss | ||
23 | if [ $? != 0 ]; then | 32 | if [ $? != 0 ]; then |
24 | echo "error using 'req' to generate a certificate request" | 33 | echo "error using 'req' to generate a certificate request" |
25 | exit 1 | 34 | exit 1 |
@@ -60,7 +69,7 @@ fi | |||
60 | 69 | ||
61 | echo | 70 | echo |
62 | echo "make another certificate request using 'req'" | 71 | echo "make another certificate request using 'req'" |
63 | $reqcmd -config $Uconf -out $Ureq -keyout $Ukey -new >err.ss | 72 | $reqcmd -config $Uconf -out $Ureq -keyout $Ukey $req_new >err.ss |
64 | if [ $? != 0 ]; then | 73 | if [ $? != 0 ]; then |
65 | echo "error using 'req' to generate a certificate request" | 74 | echo "error using 'req' to generate a certificate request" |
66 | exit 1 | 75 | exit 1 |