Encrypts the given RSA private key data with the given password (or generates a password if no password was given) and converts the data to PEM format suitable for writing to a file.
It uses AES cipher for the encryption.
data |
RSA private key data to be encrypted |
in_password |
existing password to use, if any |
out_password |
if |
on success, PEM-formatted data suitable for writing to a PEM-formatted certificate/private key file. |