xml.CryptoKey.loadDER
Loads an asymmetric DSA key, an asymmetric RSA key, or Diffie-Hellman parameters from a file in DER format.
Syntax
loadDER(
filename STRING )
- filename defines the filename or an entry in the FGLPROFILE file.
Usage
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. Depending on the error, a human-readable description of the
problem is available in the sqlca.sqlerrm
register. See Error handling in GWS calls (status).