Unable to specify custom trust store via JVM arguments
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 250
- Avg merge
- 16h 22m
- Merged PRs (30d)
- 36
Description
### Affected version
1.0.3
### Bug description
I did a manual install on RHEL by extracting the zip of version 1.0.3.
I specified my custom trust store JVM arguments already in different places: $MVND_HOME/conf/mvnd.properties, ~/.m2/mvnd.properties
I put the following property:
`mvnd.jvmArgs = -Djavax.net.ssl.trustStore=/home/user/trust/truststore.jks -Djavax.net.ssl.trustStoreType=JKS -Djavax.net.ssl.trustStorePassword=`
I also tried to provide the `-Dmvnd.jvmArgs="-Djavax.ssl.... "` property to the 'mvnd' command directly.
But whatever I do, the trust store is not getting picked up by the daemon and my build keeps failing with an PKIX error.
I've made sure that I stopped the daemon before modifying the properties.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing how mvnd.jvmArgs is read from $MVND_HOME/conf/mvnd.properties and ~/.m2/mvnd.properties, then compare that with the -Dmvnd.jvmArgs command-line entry point. Reproduce the PKIX failure with the supplied trustStore arguments and confirm the daemon receives them and the build succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100