Author image Massimiliano Pala

NAME

OpenCA::CRR - Perl extention to handle CRR objects.

SYNOPSIS

  use OpenCA::CRR;

DESCRIPTION

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.).

FUNCTIONS

sub new () - Creates a new instance of the class.

        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 );

sub getParsed () - Returns a parsed CRR.

        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,
                };

sub getSignature() - Returns signature.

        Use this function to retrieve the signature. Remember the
        signature is intended to be PKCS7 and returned value includes
        boundaries.

        EXAMPLE:

                print $CRR->getSignature();



                        

AUTHOR

Massimiliano Pala <madwolf@openca.org>

SEE ALSO

perl(1).