Add support for PEM with passphrase detection