OpenCA::CRR - Perl extention to handle CRR objects.
use OpenCA::CRR;
This class handles CRR (Certificate Revoking Request) objects. Them can be signed or not depending on the implementation. CRR objects begin and end with boundaries:
-----BEGIN CRR----- -----END CRR-----
Currently implemented functions are:
new - Creates a new instance of the class. getParsed - Returns a parsed version of the object. getSignature - Returns the signature (if present). getBody - Get Signed Text (boundaries included). getCRR - Returns passed CRR (sig. incl.).
This function creates a new instance of the class. You have to provide a valid CRR data as argument. EXAMPLE: my $CRR = new OpenCA::CRR( $crrData );
This function returns a parsed CRR as an HASH object. The returned object has the following structure: my $ret = { SUBMIT_DATE => $date, BODY => $body, SIGNATURE => $signature, CERTIFICATE_DN => $dn, CERTIFICATE_NOT_BEFORE => $notbefore, CERTIFICATE_NOT_AFTER => $notafter, CERTIFICATE_SERIAL => $serial, CERTIFICATE_ISSUER => $issuer, };
Use this function to retrieve the signature. Remember the signature is intended to be PKCS7 and returned value includes boundaries. EXAMPLE: print $CRR->getSignature();
Massimiliano Pala <madwolf@openca.org>
perl(1).
To install OpenCA::CRR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenCA::CRR
CPAN shell
perl -MCPAN -e shell install OpenCA::CRR
For more information on module installation, please visit the detailed CPAN module installation guide.