I need to convert a SPKAC file (with Netscape Browser generated
SPKAC=xxxxx) to a PEM format request file.
To do so, I patched ca.c (whcih can take a spkac file), added an option
"-reqout file". According to the code, certify_spkac() creates a X509
request structure and fills in the fields from the SPKAC file, so that
the same code (do_body()) can be used to sign the request. I call
PEM_write_bio_X509_REQ() before the call to do_body().
It does generate a PEM file, but when I use "req -text " to look at it,
I got error:
# req -text -in 2.pem
Using configuration from /opt/dcesnare/httpd/ssl/lib/ssleay.cnf
unable to load X509 request
17034:error:0D07E071:asn1 encoding routines:d2i_ASN1_INTEGER:expecting
an integer:a_int.c:191
17034:error:0D0B0070:asn1 encoding routines:D2I_X509_REQ_INFO:error
stack:x_req.c:147
17034:error:0D0AF070:asn1 encoding routines:D2I_X509_REQ:error
stack:x_req.c:205
17034:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1
lib:pem_lib.c:236
Something is missing. Any suggestions?
Any one has such a tool?
Thanks.
--
--------------------------------------------------------------------
Weidong Wang, Dr. IntelliSoft Corp.
[EMAIL PROTECTED] http://www.isoft.com/
+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/ |
+-------------------------------------------------------------------------+