diff options
| author | ryker <> | 1998-10-05 20:13:14 +0000 |
|---|---|---|
| committer | ryker <> | 1998-10-05 20:13:14 +0000 |
| commit | aeeae06a79815dc190061534d47236cec09f9e32 (patch) | |
| tree | 851692b9c2f9c04f077666855641900f19fdb217 /src/lib/libssl/test/testgen | |
| parent | a4f79641824cbf9f60ca9d1168d1fcc46717a82a (diff) | |
| download | openbsd-aeeae06a79815dc190061534d47236cec09f9e32.tar.gz openbsd-aeeae06a79815dc190061534d47236cec09f9e32.tar.bz2 openbsd-aeeae06a79815dc190061534d47236cec09f9e32.zip | |
Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD build
functionality for shared libs.
Note that routines such as sslv2_init and friends that use RSA will
not work due to lack of RSA in this library.
Needs documentation and help from ports for easy upgrade to full
functionality where legally possible.
Diffstat (limited to 'src/lib/libssl/test/testgen')
| -rw-r--r-- | src/lib/libssl/test/testgen | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/libssl/test/testgen b/src/lib/libssl/test/testgen new file mode 100644 index 0000000000..12a4ca4cea --- /dev/null +++ b/src/lib/libssl/test/testgen | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | T=testcert | ||
| 4 | KEY=512 | ||
| 5 | CA=../certs/testca.pem | ||
| 6 | |||
| 7 | /bin/rm -f $T.1 $T.2 $T.key | ||
| 8 | |||
| 9 | PATH=../apps:$PATH; | ||
| 10 | export PATH | ||
| 11 | |||
| 12 | echo "generating certificate request" | ||
| 13 | |||
| 14 | echo "There should be a 2 sequences of .'s and some +'s." | ||
| 15 | echo "There should not be more that at most 80 per line" | ||
| 16 | echo "This could take some time." | ||
| 17 | |||
| 18 | ../apps/ssleay req -config test.cnf -new -out testreq.pem | ||
| 19 | if [ $? != 0 ]; then | ||
| 20 | echo problems creating request | ||
| 21 | exit 1 | ||
| 22 | fi | ||
| 23 | |||
| 24 | ../apps/ssleay req -verify -in testreq.pem -noout | ||
| 25 | if [ $? != 0 ]; then | ||
| 26 | echo signature on req is wrong | ||
| 27 | exit 1 | ||
| 28 | fi | ||
| 29 | |||
| 30 | exit 0 | ||
