Exporting a Certificate
Exporting certificate from the CipherTrust Manager to your application depends on the format of the certificate and whether you are exporting the private key.
To export the certificate in PEM format, call the I_C_ExportCertificate
function. Any private key associated with the certificate is ignored. The certificate itself must be exportable - it must have the exportable flag set to yes
, otherwise you will get an error.
The following function is used:
I_T_RETURN FUNCEXP
I_C_ExportCertificate(I_O_Session sessionHandle, const I_T_CHAR * certificateName, I_T_ExportFormat exportFormat, const I_T_CHAR * password, I_T_CHAR ** data, I_T_UINT * dataSize);