public static KeyStore createTrustStore ( String capem ) throws IOException , CertificateException , KeyStoreException , NoSuchAlgorithmException { try ( Reader certReader = new StringReader ( capem ) ) { return createTrustStore ( certReader ) ; } }
ca . pem from String