opensubscriber
   Find in this group all groups
 
Unknown more information…

o : openca-devel@lists.sourceforge.net 18 November 2009 • 5:22AM -0500

[OpenCA-Devel] Batch Process Adjustments Questions
by murphykm

REPLY TO AUTHOR
 
REPLY TO GROUP






Hello,

I have been tasked with adding additional fields to our cert creation that
is done via batching. I have about 15 fields or so that I need to add to
the cert.

Looking through the code, it appears that create_csr.sub is the one I need
to alter. The changes I have made seem to create the field files similar
to SUBJECT and such that were created before. Each field file does have
the correct data. However, when the cert is created, none of my custom
fields show up.

Here are some of the changes I have made:

At line 26, I define the new variables and fields I am tracking
    my @additionalfields =
("EMPLOYEEID","USERID","CITIZENSHIP","EMAIL","DEPTARTMENT",

"PHONE","APPLICATION","COMPANY","LOCATION","ADDRESS","MAILZONE","CITY","STATE","ZIP","COUNTRY");
    my %fields = ();
    my $field = "";

Around line 76 (Right below the load subject lines)
    foreach $field (@additionalfields) {
        $fields{$field} = $tools->getFile ($home."/data/".$field);
        if (not $fields{$field} ) {
                my $msg = gettext ("The $field of the request cannot be
loaded.");
                $journal->{message} .= $msg;
                $log->addMessage (OpenCA::Log::Message->new (HASHREF =>
$journal));
                return [ -150, $msg ];
        }
    }

Then right after  line 136 I added the three lines below:
    foreach $field (@additionalfields) {
            $tmp .= $field." = ".$fields{$field}."\n";
    }


After all that I my new fields do not show up in the cert. Do I need to
alter OpenCA::REQ or something? I am not sure where to look next.

Thank you,
K Murphy
Email: murphykm@gdls...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.