The CryptoKey class / xml.CryptoKey methods |
Loads an asymmetric DSA key, an asymmetric RSA key or Diffie-Hellman parameters from a file in PEM format.
If the DSA or RSA private key or Diffie-Hellman parameters is protected with a password, the recommended way is to unprotect it with the openssl tool and to put the key file on a restricted file system. However, you can use a script or the fglpass agent to provide the password to the application.
In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.