There is line with OpenCA::OpenSSL::SMIME->new. You have to enter the
parameter DEBUG like follows:
DEBUG => $self->{DEBUG},
Hi Michael,
thx for your response, but I'm a little confused. I did as you asked and changed the file /usr/local/openca/modules/perl5/OpenCA/Token/OpenSSL.pm :
from:
my $self = {
DEBUG => 0,
debug_fd => $STDERR,
## debug_msg => ()
};to:
my $self = {
DEBUG => $self->{DEBUG},
debug_fd => $STDERR,
## debug_msg => ()
};But if I start openca_start I get the following message:
develop-bak:/usr/local/openca# etc/openca_start Content-Type: text/html
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="C" xml:lang="C"><head><title>Configuration Error</title>
</head><body bgcolor="#FFFFFF"><CENTER><BR><HR WIDTH=80%><BR></CENTER><OL><OL><H1><FONT COLOR=red>Error 690</FONT></H1><OL> <B>Configuration Error</B>. Cannot initialize cryptographic layer (configurationfile /usr/local/openca/etc/token.xml)!Cannot create new OpenCA Token object. .</OL></OL></OL>
</PRE><CENTER><HR WIDTH=80%></CENTER>
<FONT SIZE="+0">
</BODY>
</HTML>
OpenCA: Error Trapped: Cannot initialize cryptographic layer (configurationfile /usr/local/openca/etc/token.xml)!Cannot create new OpenCA Token object. at /usr/local/openca/modules/perl5/OpenCA/UI/HTML.pm line 147, <SOCK> line 28.
Compilation failed in require at etc/openca_start line 49, <SOCK> line 28.
So I guess I'm doing *something* wrong, if you could give me some directions or point out what I'm doing wrong I should be able to change the file the right way :). I tried to change the line to DEBUG => 1, and I did get a lot of additional debug info at first. But when I'm issueing the certificate I get the same error:
writing RSA key
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::getReqAttribute<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::getCertAttribute<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::getNumericDate<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::setParams<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::issueCert<br>
Using configuration from /usr/local/openca/etc/openssl/openssl/CA_Operator.conf
DEBUG[load_index]: unique_subject = "yes"
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'NL'
organizationName :PRINTABLE:'OpenCA'
organizationalUnitName:PRINTABLE:'Internet'
commonName :PRINTABLE:'administrator'
serialNumber :PRINTABLE:'13'
Certificate is to be certified until Mar 27 15:26:52 2005 GMT (365 days)
Write out database with 1 new entries
Data Base Updated
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::getCertAttribute<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::getCertAttribute<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::sign<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::getCertAttribute<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::getCertAttribute<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::getPIN<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::getDigest<br>
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::getSMIME<br>
PKI Debugging: OpenCA::Token::OpenSSL error
PKI Debugging: Aborting all operations
PKI Debugging: Error: 8012006
PKI Debugging: Message: OpenCA::OpenSSL::SMIME->encrypt: unknown
problem encrypting (11).
PKI Debugging: debugging messages of OpenSSL token follow
OpenCA::Token::OpenSSL->OpenCA::Token::OpenSSL: AUTOLOAD => OpenCA::Token::OpenSSL::DESTROY<br>
Hope you can tell me what I'm doing wrong...
Thx in advance, Bram Ridder
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Openca-Users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-users
