]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/StartTLSServers.sh
6 # Created by Fabrice Gautier on 6/7/11.
7 # Copyright 2011 Apple, Inc. All rights reserved.
9 # Use this for macport install of gnutls:
10 #GNUTLS_DIR=/opt/local
12 # Use this if you compiled your own gnutls:
19 OPENSSL_DIR
=/opt
/local
22 #OPENSSL_DIR=/usr/local
25 echo "Starting servers"
27 echo "openssl s_server RSA/RSA..."
28 ${OPENSSL_DIR}/bin
/openssl s_server
-accept 4001 -state -key test-certs/ServerKey.rsa.pem
-cert test-certs/ServerCert.rsa.rsa.pem
-www -cipher ALL
:eNULL
> /tmp
/s_server.rsa.rsa.log
2>&1 &
30 echo "openssl s_server RSA/ECC..."
31 ${OPENSSL_DIR}/bin
/openssl s_server
-accept 4002 -state -key test-certs/ServerKey.rsa.pem
-cert test-certs/ServerCert.rsa.ecc.pem
-www -cipher ALL
:eNULL
> /tmp
/s_server.rsa.ecc.log
2>&1 &
33 echo "openssl s_server ECC/RSA..."
34 ${OPENSSL_DIR}/bin
/openssl s_server
-accept 4003 -state -key test-certs/ServerKey.ecc.pem
-cert test-certs/ServerCert.ecc.rsa.pem
-www -cipher ALL
:eNULL
> /tmp
/s_server.ecc.rsa.log
2>&1 &
36 echo "openssl s_server ECC/ECC..."
37 ${OPENSSL_DIR}/bin
/openssl s_server
-accept 4004 -state -key test-certs/ServerKey.ecc.pem
-cert test-certs/ServerCert.ecc.ecc.pem
-www -cipher ALL
:eNULL
> /tmp
/s_server.ecc.ecc.log
2>&1 &
39 echo "gnutls-serv RSA/RSA..."
40 ${GNUTLS_DIR}/bin
/gnutls
-serv -p 5001 -d 4 --http -a --x509keyfile test-certs/ServerKey.rsa.pem
--x509certfile test-certs/ServerCert.rsa.rsa.pem
--priority "NORMAL:+ANON-DH:+NULL" > /tmp
/gnutls
-serv.rsa.rsa.log
2>&1 &
42 echo "gnutls-serv RSA/ECC..."
43 ${GNUTLS_DIR}/bin
/gnutls
-serv -p 5002 -d 4 --http -a --x509keyfile test-certs/ServerKey.rsa.pem
--x509certfile test-certs/ServerCert.rsa.ecc.pem
--priority "NORMAL:+ANON-DH:+NULL" > /tmp
/gnutls
-serv.rsa.ecc.log
2>&1 &
45 echo "gnutls-serv ECC/RSA..."
46 ${GNUTLS_DIR}/bin
/gnutls
-serv -p 5003 -d 4 --http -a --x509keyfile test-certs/ServerKey.ecc.pem
--x509certfile test-certs/ServerCert.ecc.rsa.pem
--priority "NORMAL:+ANON-DH:+NULL" > /tmp
/gnutls
-serv.ecc.rsa.log
2>&1 &
48 echo "gnutls-serv ECC/ECC..."
49 ${GNUTLS_DIR}/bin
/gnutls
-serv -p 5004 -d 4 --http -a --x509keyfile test-certs/ServerKey.ecc.pem
--x509certfile test-certs/ServerCert.ecc.ecc.pem
--priority "NORMAL:+ANON-DH:+NULL" > /tmp
/gnutls
-serv.ecc.ecc.log
2>&1 &
51 echo "openssl s_server RSA/RSA + Client Side Auth..."
52 ${OPENSSL_DIR}/bin
/openssl s_server
-accept 4011 -verify 3 -CAfile test-certs/CACert.rsa.pem
-state -key test-certs/ServerKey.rsa.pem
-cert test-certs/ServerCert.rsa.rsa.pem
-www -cipher ALL
:eNULL
> /tmp
/s_server.rsa.rsa.csa.log
2>&1 &
54 echo "openssl s_server RSA/ECC + Client Side Auth...."
55 ${OPENSSL_DIR}/bin
/openssl s_server
-accept 4012 -verify 3 -CAfile test-certs/CACert.rsa.pem
-state -key test-certs/ServerKey.rsa.pem
-cert test-certs/ServerCert.rsa.ecc.pem
-www -cipher ALL
:eNULL
> /tmp
/s_server.rsa.ecc.csa.log
2>&1 &
57 echo "openssl s_server ECC/RSA + Client Side Auth...."
58 ${OPENSSL_DIR}/bin
/openssl s_server
-accept 4013 -verify 3 -CAfile test-certs/CACert.rsa.pem
-state -key test-certs/ServerKey.ecc.pem
-cert test-certs/ServerCert.ecc.rsa.pem
-www -cipher ALL
:eNULL
> /tmp
/s_server.ecc.rsa.csa.log
2>&1 &
60 echo "openssl s_server ECC/ECC + Client Side Auth...."
61 ${OPENSSL_DIR}/bin
/openssl s_server
-accept 4014 -verify 3 -CAfile test-certs/CACert.rsa.pem
-state -key test-certs/ServerKey.ecc.pem
-cert test-certs/ServerCert.ecc.ecc.pem
-www -cipher ALL
:eNULL
> /tmp
/s_server.ecc.ecc.csa.log
2>&1 &
63 echo "gnutls-serv RSA/RSA + Client Side Auth...."
64 ${GNUTLS_DIR}/bin
/gnutls
-serv -p 5011 -d 4 --http --x509keyfile test-certs/ServerKey.rsa.pem
--x509certfile test-certs/ServerCert.rsa.rsa.pem
--priority "NORMAL:+ANON-DH:+NULL" > /tmp
/gnutls
-serv.rsa.rsa.csa.log
2>&1 &
66 echo "gnutls-serv RSA/ECC + Client Side Auth...."
67 ${GNUTLS_DIR}/bin
/gnutls
-serv -p 5012 -d 4 --http --x509keyfile test-certs/ServerKey.rsa.pem
--x509certfile test-certs/ServerCert.rsa.ecc.pem
--priority "NORMAL:+ANON-DH:+NULL" > /tmp
/gnutls
-serv.rsa.ecc.csa.log
2>&1 &
69 echo "gnutls-serv ECC/RSA + Client Side Auth...."
70 ${GNUTLS_DIR}/bin
/gnutls
-serv -p 5013 -d 4 --http --x509keyfile test-certs/ServerKey.ecc.pem
--x509certfile test-certs/ServerCert.ecc.rsa.pem
--priority "NORMAL:+ANON-DH:+NULL" > /tmp
/gnutls
-serv.ecc.rsa.csa.log
2>&1 &
72 echo "gnutls-serv ECC/ECC + Client Side Auth...."
73 ${GNUTLS_DIR}/bin
/gnutls
-serv -p 5014 -d 4 --http --x509keyfile test-certs/ServerKey.ecc.pem
--x509certfile test-certs/ServerCert.ecc.ecc.pem
--priority "NORMAL:+ANON-DH:+NULL" > /tmp
/gnutls
-serv.ecc.ecc.csa.log
2>&1 &