[kmf-discuss] SignCSR and Returned Message

Massimiliano Pala pala at cs.dartmouth.edu
Mon Mar 19 13:10:52 PDT 2007


Hi all,

I am having another "problem" with the SignCSR function. Indeed, now that
the memory fault is resolved, when I try to sign the request by:

	/* Pick the right signing algorithm */
         if ( pkey->priv_key->keyalg == KMF_RSA ) {
                 alg = KMF_ALGID_SHA1WithRSA;
         } else if ( pkey->priv_key->keyalg == KMF_DSA ) {
                 alg = KMF_ALGID_SHA1WithDSA;
         } else {
                 /* Unsupported Algorithm */
                 goto err;
         }

	rv = KMF_SetCSRSignatureAlgorithm( req->tbs, alg );
	rv = KMF_SignCSR( lib_h, req->tbs, pkey->priv_key, req->data);

I get the following error:

    drivers/kmf/pki_x509_req.c:91 ERROR::12 KMF_ERR_BAD_CERT_FORMAT

What does this means ? Any ideas ?

-- 

Best Regards,

	Massimiliano Pala

--o------------------------------------------------------------------------
Massimiliano Pala [OpenCA Project Manager]            pala at cs.dartmouth.edu
                                                  project.manager at openca.org

Dartmouth Computer Science Dept               Home Phone: +1 (603) 397-3883
PKI/Trust - Office 063                        Work Phone: +1 (603) 646-9179
--o------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3088 bytes
Desc: S/MIME Cryptographic Signature
Url : http://oss-beta1.opensolaris.org/pipermail/kmf-discuss/attachments/20070319/8c1609f5/attachment.bin 


More information about the kmf-discuss mailing list