Reputation: 1332
I found this question: Import Windows certificates to Java, which had the answer for a Windows machine. I have been unable to find the equivalent to -Djavax.net.ssl.trustStoreType=WINDOWS-ROOT
for MacOS.
Upvotes: 2
Views: 9183
Reputation: 937
I am using version 10.14.1 (Mojave).
Upvotes: -1
Reputation: 1082
On OSX you can set -Djavax.net.ssl.trustStoreType=KeychainStore
to use the OSX keychain for trusted certificates; which is part of the Apple JCA Provider.
Upvotes: 7
Reputation: 1332
Jacob Blanton provided the solution in his comment, above. By adding -Djavax.net.ssl.trustStore=<path to cacerts>
to MAVEN_OPTS in my .bash_profile, both standalone Maven and Maven in Eclipse were able to access the repo as needed [after I installed the cert to cacerts using the instructions Jorge Campos linked to in his comment, found here https://blog.alwold.com/2011/06/30/how-to-trust-a-certificate-in-java-on-mac-os-x/ ]
Upvotes: 0