1 # this script generates a simple self-signed keypair
3 openssl genrsa -nodes -out jetty.key 4096
4 openssl req -new -key jetty.key -out jetty.csr -subj "/CN=localhost" -config selfsign.config
5 openssl x509 -req -days 365 -in jetty.csr -signkey jetty.key -out jetty.crt
6 openssl pkcs12 -inkey jetty.key -in jetty.crt -export -passout pass: -out ../config/keystore.pkcs12