How to build a SSLSocketFactory from PEM certificate and key without converting to keystore?

It turned out that a KeyStore instance still has to be built, but it can be done in memory (starting with PEM files as input), without using an intermediate keystore file build with keytool. To build that in-memory KeyStore, code like the following may be used: private static final String TEMPORARY_KEY_PASSWORD = “changeit”; private KeyStore … Read more