Write the composed V2 CRL to the "crlFile" in PEM format.
The CRL was composed by calling newCrl and one or more of the revokeCert calls. The CA's private key is used to sign the list to prove that the CRL was constructed by the CA.
- Parameters
-
pCrlFile | [ in ] The file to create and write the CRL. |
pCAPrivateKey | [ in ] The p6ICryptoKey interface for the private key of the CA used to sign the new certificate. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eInvalidHandle | newCrl has not been called before this function. |
P6R::eInvalidArg | Either crlFile or CAPrivateKeyFile are NULL. |
P6R::eIoError | Failure during reading CAPrivateKeyFile. Or failure to write crlFile. |
P6R::eNotFound | Cannot open to read CAPrivateKeyFile. |
P6R::eInvalidState | Failure to properly set its the CRL's version number. |
P6R::eInternalError | Failure to properly sign CRL. |
P6R::eInvalidDescriptor | The specified CAPrivateKeyFile is not either an RSA or DSA key. |