Openssl RSA Private Key Encrypt
Encrypt RSA Private Key
The -aes256
tells openssl
to encrypt the key with AES256-CBC.
to decrypt a rsa encrypted key, drop the -aes256
flag:
Encrypt RSA Private Key with PKCS8
openssl pkcs8
- it uses a key derivation function and supports RSA, ECC and Edwards keys:
For even better security use the scrypt
KDF:
to decrypt a pkcs8 encrypted key, drop the -topk8
flag:
Last updated