Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKeystoreSSL2::replaceTrustedRootCertFromPEMFile ( const P6WCHAR pszRootCertFile,
const P6CHAR pszPassPhrase,
P6UUID puuidCert 
)
pure virtual

Replaces the existing certificate in the keystore having the same subject hash with the certificate specified by the PEM file in pszRootCertFile.

The certificate is relpaces the one in the "p6r.trustedroot" namespace, using the certificates subject hash as the unique identifier (name) for the certificate. This allows the SSL networking layer to automatically locate the certificate when verifying the server's certificte for the secure connection. The certificate must be a PEM encoded X509 certificate.

Parameters
pszRootCertFile[ in ] A pointer to the NULL terminated pathname of the file containing the certificate to be imported into the keystore, replacing an existing certificate with the same subject hash.
pszPassPhrase[ in ] (optional) If the PEM files being imported are encrypted, this argument provides a NULL terminating string containing the passphrase to use for decrypting the files.
puuidCert[ out ] The address of a P6R::P6UUID in which if not NULL, will be placed the UUID of the imported certificate.
Returns