The KeyStore Javadocs page should have enough sample code to get started:
As for the default βkeystoreβ, Iβm not sure that such a thing exists, usually you either load it explicitly from a file, or you can configure it using the following system properties:
- javax.net.ssl.keyStore - location of the keystore
- javax.net.ssl.keyStorePassword - password for keys
- javax.net.ssl.keyStoreType - type Keystore (JKS, P12, etc.)
And similarly for the trust store:
- javax.net.ssl.trustStore
- javax.net.ssl.trustStorePassword
- javax.net.ssl.trustStoreType
source share