public static SslContext forKeystore ( String keystorePath , String keystorePassword ) throws SecurityContextException { return forKeystore ( keystorePath , keystorePassword , "SunX509" ) ; }
Builds SslContext using a protected keystore file . Adequate for non - mutual TLS connections .