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