Permalink
Browse files

t/sslgen.sh: use larger keys for tests

This seems required for TLSv1.2 under OpenSSL 1.0.1
  • Loading branch information...
1 parent 12cd717 commit d258653745e1c8e8fa13b95b1944729294804946 Eric Wong committed Apr 13, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 t/sslgen.sh
View
@@ -36,21 +36,21 @@ ca_certinfo () {
echo unicorn@bogomips.org
}
-openssl genrsa -out ca.key 512
+openssl genrsa -out ca.key 1024
ca_certinfo | openssl req -new -x509 -days 666 -key ca.key -out ca.crt
-openssl genrsa -out bad-ca.key 512
+openssl genrsa -out bad-ca.key 1024
ca_certinfo | openssl req -new -x509 -days 666 -key bad-ca.key -out bad-ca.crt
-openssl genrsa -out server.key 512
+openssl genrsa -out server.key 1024
certinfo2 | openssl req -new -key server.key -out server.csr
openssl x509 -req -days 666 \
-in server.csr -CA ca.crt -CAkey ca.key -set_serial 1 -out server.crt
n=2
mk_client_cert () {
CLIENT=$1
- openssl genrsa -out $CLIENT.key 512
+ openssl genrsa -out $CLIENT.key 1024
certinfo2 | openssl req -new -key $CLIENT.key -out $CLIENT.csr
openssl x509 -req -days 666 \

0 comments on commit d258653

Please sign in to comment.