How to set up Java VM to use the root certificates (truststore) handled by Mac OS X
You can use the Apple JCA Provider to use the OSX keychain as the java trust store. Just start the JVM with the following system property: -Djavax.net.ssl.trustStoreType=KeychainStore You can set this property for every started JVM using the JAVA_TOOL_OPTIONS environment variable, as described in hagrawal’s answer.