]> WPIA git - gigi.git/blob - doc/scripts/generateKeys.sh
Adding key-generation to autotest
[gigi.git] / doc / scripts / generateKeys.sh
1 #!/bin/sh
2 # this script generates a simple self-signed keypair
3
4 openssl genrsa -out jetty.key 4096
5 openssl req -new -key jetty.key -out jetty.csr -subj "/CN=localhost" -config selfsign.config
6 openssl x509 -req -days 365 -in jetty.csr -signkey jetty.key -out jetty.crt
7 openssl pkcs12 -inkey jetty.key -in jetty.crt -export -passout pass: -out ../../config/keystore.pkcs12