heroku / webapp-runner

Lightweight Application Launcher. Launch your webapp in the most popular open source web container available with a single command.
BSD 3-Clause "New" or "Revised" License
321 stars 112 forks source link

How to configure encrypted SSL keystore password in webapp-runner.jar #545

Open mahesh-tier1app opened 1 week ago

mahesh-tier1app commented 1 week ago

I have a Java web application developed using JSP and Servlet, which I run via webapp-runner.jar to launch the WAR file. The webapp-runner.jar provides an option to enable SSL using the --enable-ssl argument, requiring -Djavax.net.ssl.keyStore and -Djavax.net.ssl.keyStorePassword parameters.

However, I want to pass an encrypted value for javax.net.ssl.keyStorePassword rather than a plain text password. It appears that webapp-runner.jar doesn’t support encrypted passwords directly.

Is there any way to achieve this? Any suggestions or workarounds to securely handle the password for SSL configuration would be greatly appreciated.

Malax commented 2 days ago

Hi @mahesh-tier1app, thanks for reaching out!

Can you explain what your use-case is here? How do you use webapp-runner?

I'm not sure if the feature you're asking for can even be effectively implemented. Consider:

It's totally possible that I'm missing the point here, so having more information about your use-case would greatly help to find a solution for you here. :)