When prompted for password enter: changeit
mkcert -pkcs12 cert.p12 localhost "api.localhost"
keytool -importkeystore \
-srckeystore cert.p12 \
-destkeystore localhost.jks \
-srcstoretype PKCS12 \
-deststoretype jks
mkcert -key-file key.pem \
-cert-file cert.pem \
localhost "api.localhost"
Copy key.pem
and cert.pem
to nginx/ssl/