Loading a certificate from a PEM file
IMPORT xml
MAIN
DEFINE x509 xml.CryptoX509
LET x509 = xml.CryptoX509.Create()
TRY
CALL x509.loadPEM("Certificate.crt");
DISPLAY "Id : ",x509.getIdentifier()
CATCH
DISPLAY "Unable to load certificate :",STATUS
END TRY
END MAIN
Note: All certificates in PEM format were created with
the OpenSSL tool.