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: murph...@gdls.com
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
OpenCA-Devel mailing list
OpenCA-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openca-devel

Reply via email to