xml.KeyStore.AddCertificate

Registers in the keystore the given X509 certificate as a certificate for the application.

Syntax

xml.KeyStore.AddCertificate( 
   global xml.CryptoX509 )
  1. global defines the X509 certificate to register.

Usage

This method registers a given X509 certificate to be used when an incomplete X509 certificate is detected during signature or encryption. To complete the process the certificate's issuer name and serial number are checked.

The method has the same effect as the FGLPROFILE entry xml.keystore.x509list.

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).