Also generate CA certificates for the test suite

This commit is contained in:
Evgeniy Khramtsov 2018-05-02 10:28:22 +03:00
parent 4ea481d1dd
commit 4e83fc41d4
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ mkdir -p ssl/newcerts
touch ssl/index.txt
echo 01 > ssl/serial
echo 1000 > ssl/crlnumber
openssl genrsa -out ca.key 2048
openssl req -new -x509 -key ca.key -out ca.pem -batch
openssl genrsa -out ssl/client.key
openssl req -new -key ssl/client.key -out ssl/client.csr -config openssl.cnf -batch -subj /C=AU/ST=Some-State/O=Internet\ Widgits\ Pty\ Ltd/CN=localhost
openssl ca -keyfile ca.key -cert ca.pem -in ssl/client.csr -out ssl/client.crt -config openssl.cnf -days 10000 -batch -notext