ssl - Import PEM into Java Key Store - Stack Overflow
In my case I had a pem file which contained two certificates and an encrypted private key to be used in mutual SSL authentication. So my pem file looked like this:-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----BEGIN RSA PRIVATE KEY-----Proc ......