a little nicer wrt pep8
[sfa.git] / keyconvert / test.sh
1 # this scripts tests the key conversion routines
2 # it converts the _pub files in test/ from openssh to openssl
3 # it then verifies signatures with openssl (see keytest.sh)
4
5 rm -rf testout
6 mkdir testout
7
8 # rsa1 keys
9 # these are in a different format
10 #./keyconvert.py test/openssh_rsa1_512.pub testout/openssl_rsa1_512.pem
11 #./keyconvert.py test/openssh_rsa1_1024.pub testout/openssl_rsa1_1024.pem
12 #./keyconvert.py test/openssh_rsa1_2048.pub testout/openssl_rsa1_2048.pem
13
14 # rsa2 keys
15 ./keyconvert.py test/openssh_rsa_512.pub testout/openssl_rsa_512.pem
16 ./keyconvert.py test/openssh_rsa_1024.pub testout/openssl_rsa_1024.pem
17 ./keyconvert.py test/openssh_rsa_2048.pub testout/openssl_rsa_2048.pem
18
19 # dsa keys
20 ./keyconvert.py test/openssh_dsa_512.pub testout/openssl_dsa_512.pem
21 ./keyconvert.py test/openssh_dsa_1024.pub testout/openssl_dsa_1024.pem
22 ./keyconvert.py test/openssh_dsa_2048.pub testout/openssl_dsa_2048.pem
23
24 # make a test file to encrypt
25 echo "this is a test to see if the key conversion routines work" > test.txt
26
27 # test the keys
28 ./testkey.sh -sha1 rsa_512
29 ./testkey.sh -sha1 rsa_1024
30 ./testkey.sh -sha1 rsa_2048
31 ./testkey.sh -dss1 dsa_512
32 ./testkey.sh -dss1 dsa_1024
33 ./testkey.sh -dss1 dsa_2048