xml.CryptoX509.loadPEM
Loads a X509 certificate from a file in PEM format.
Syntax
loadPEM(
filename STRING )
- filename defines the filename or an entry in the FGLPROFILE
file.
If your FGLPROFILE contains an entry like
xml.myRsa.key="/opt/fourjs/crt/myRsa.pem"(where "myRsa" is the key identifier), pass "myRsa" to the method to retrieve that value. For an example of loading an encryption key, refer to Loading a certificate from a PEM file. For more on security-related FGLPROFILE entries, go to XML configuration and FGLPROFILE: XML cryptography.
Usage
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).