Solved.
 
Coding problem. I was signing the certificate with the same public key that was in the certificate.
Surley this should not  give Seg fault.
 
I will look further.
 
Hylton
 
-----Original Message-----
From: Hylton Tregenza
Sent: 23 November 2001 04:13
To: [EMAIL PROTECTED]
Subject: Need help signing a certificate

Hi

I am generating a certificate from within my code. All appears to be in place when I call X509_sign.
I have a valid X509 Certificate structure and a valid private  Key in EVP_PKEY.

I am calling the function as follows.
X509_sign(pX509, pEVP_PKEY, EVP_sha1());

I am not sure if the message digest is done correctly. or if I can sign a X509 structure. (Does it have to be a X509_REQ?)/

In any event, I am getting a Segmentation violation error when I call sign. As I am fairly new to this, what could I have overlooked that would cause  such an error.

I have looked over whatever Google served me but up till now am none the wiser.

Any input appreciated
Hylton T

Attachment: smime.p7s
Description: application/pkcs7-signature

Reply via email to