How do I decrypt an encrypted private key in ColdFusion?

64 Views Asked by At

I have an encrypted private key and a passphrase. How do I decrypt the private key in ColdFusion?

-----BEGIN ENCRYPTED PRIVATE KEY-----
{THE_ENCRYPTED_PRIVATE_KEY}
-----END ENCRYPTED PRIVATE KEY-----

In PHP it's possible to do this, but I can't find an equivalent in ColdFusion.

$key = openssl_pkey_get_private($private_key, $passphrase);

I've tried using the decrypt() method which didn't work.

0

There are 0 best solutions below