Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IGenCerts::genCrlFile ( const P6WCHAR pCrlFile,
p6ICryptoKey pCAPrivateKey 
)
pure virtual

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
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidHandlenewCrl has not been called before this function.
P6R::eInvalidArgEither crlFile or CAPrivateKeyFile are NULL.
P6R::eIoErrorFailure during reading CAPrivateKeyFile. Or failure to write crlFile.
P6R::eNotFoundCannot open to read CAPrivateKeyFile.
P6R::eInvalidStateFailure to properly set its the CRL's version number.
P6R::eInternalErrorFailure to properly sign CRL.
P6R::eInvalidDescriptorThe specified CAPrivateKeyFile is not either an RSA or DSA key.