Load certificate to KeyStore (JAVA)
问题 I have problem with loading certifiacate to key store. I can create that certificate in console with this command openssl pkcs12 -export -out cloudCA.p12 -inkey Cloud\ privateLey.key -in cloudCa.pem -certfile rootCa.pem -name "cloudCA" I figured out how to load cloudCA.pem with privateKey.key but I can't find a way how to add there rootCA.pem. This is my current code. Thank 's for help. //Regular patterns for certificate. private static final Pattern CERT_PATTERN = Pattern.compile( "-+BEGIN\