protected static PrivateKey toPrivateKey(File keyFile, String keyPassword) throws NoSuchAlgorithmException,
                                                                NoSuchPaddingException, InvalidKeySpecException,
                                                                InvalidAlgorithmParameterException,
                                                                KeyException, IOException {
        return toPrivateKey(keyFile, keyPassword, true);
    }
@Test
    public void testPkcs8UnencryptedRsa() throws Exception {
        PrivateKey key = SslContext.toPrivateKey(
                new File(getClass().getResource("rsa_pkcs8_unencrypted.key").getFile()), null);
        assertNotNull(key);
    }