You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 32 Next »

How to configure Maven to use Java keystores

Enabling Maven to use Java keystores

The following properties must be set at start of maven to be accessible when HttpClient starts up.

${renderedContent}
These two properties may be set either by maven's command-line (found in the .mvenrc file) or by the MAVEN_OPTS environment variable.

Here is an example for the .mavenrc file setting:

MAVEN_OPTS="-Djavax.net.ssl.keyStore=/path/to/serverTrustStore.jks -Djavax.net.ssl.keyStorePassword=XXXXXX"

Adjust the =/path/to/serverTrustStore.jks and the password XXXXXX as needed.

Here are instructions on how to create a Java trusted server key store.

  • No labels