Last active
August 29, 2015 14:03
-
-
Save gilday/5cf2289a5b97292c8494 to your computer and use it in GitHub Desktop.
Native Java SSL providers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Windows | |
java.util.Properties props = new java.util.Properties(); | |
props.setProperty("javax.net.ssl.keyStoreType", "Windows-MY"); | |
props.setProperty("javax.net.ssl.keyStore", "NONE"); | |
props.setProperty("javax.net.ssl.trustStoreType", "Windows-ROOT"); | |
props.setProperty("javax.net.ssl.trustStore", "NONE"); | |
// Apple (untested) | |
java.util.Properties props = new java.util.Properties(); | |
props.setProperty("javax.net.ssl.keyStoreType", "KeychainStore"); | |
props.setProperty("javax.net.ssl.keyStore", "NONE"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment