Payara Micro config - tls

created onJanuary 28, 2022

keystore

working keystore formats: PKCS#12

Payara Micro does not work with keys that have no password.

starting Payara with TLS

java -Djavax.net.ssl.keyStore=<path-to-keystore>/whatever.p12 \ -Djavax.net.ssl.keyStorePassword=<password> \ -jar <path-to-pmicro-jar>/payara-micro-5.2021.6.jar --sslcert <cert alias> --sslport <tls-port> \ --deploy target/dsgvo-1.0-SNAPSHOT

the Java SSL system properties must be given before the option, otherwise those are viewed as arguments of the main() method of the applications main class.