Hello!
I’m trying to deploy to payaramicro (2023/2024 too), using an SSL port, passing certbot as a certificate!
It doesn’t work at all, the command is one line,… I tried passing certificateFile… certificateKeyFile… there are no longer these settings in payara micro, I also tried configuring configuration files (microPayaraServer/conf) it doesn’t work, payara never checks these files (payara-micro.properties, web.xml, ssl.properties)… I can’t configure HTTPS to be from the certbot I have on my Ubuntu server!
Deploy examples I’ve already tried: nohup java -jar microPayaraServer/payara-micro-6.2024.4.jar --deploy /root/backup_arquivos/spring-api-santander-bootcamp.war --autoBindHttp --sslPort 40080 –certificateFile=/etc/letsencrypt/live/ldsystems.com.br/fullchain.pem --certificateKeyFile=/etc/letsencrypt/live/ldsystems.com.br/privkey.pem > payara.log 2>&1 &
Sorted out!
Creating a configuration file (ssl.properties) with the certificate data and passing it as a property in the deploy, example:
java -jar microPayaraServer/payara-micro-6.2024.4.jar --deploy /root/backup_arquivos/spring-api-santander-bootcamp.war --autoBindHttp --sslPort 40080 --systemproperties /opt/microPayaraServer/conf/ssl. properties --sslcert aliascert.com.br
In the properties file:
keyAlias=aliascert.com.br
javax.net.ssl.keyStoreAlias=aliascert.com.br
javax.net.ssl.keyStore=/etc/letsencrypt/live/aliascert.com.br.jks
javax.net.ssl.keyStorePassword=password
javax.net.ssl.keyStoreType=JKS
javax.net.ssl.trustStore=/etc/letsencrypt/live/aliascert.com.br.jks
javax.net.ssl.trustStorePassword=password
javax.net.ssl.trustStoreType=JKS