Hi.
I'm generating a certificate with in my code. I have a x509 structure that is populated and signed.
If I call X50_print, a file is generated that contains the certificate but the file does not contain the BEGIN and END CERTIFICATE header and footer.
Below is a sample of the file generated
Certificate:
Data:
Version: 4 (0x3)
Serial Number:
56:65:72:73:69:6f:6e:20:33
Signature Algorithm: md5WithRSAEncryption
Issuer: 0.0=Namitech PTY Ltd
Validity
Not Before: Nov 25 07:41:30 2001 GMT
Not After : Nov 25 07:41:30 2001 GMT
Subject: 0.0=Subject Line
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:9a:2b:3e:f7:f3:e9:f3:33:10:07:fc:4b:a7:8c:
82:3a:7b:04:6e:bf:b7:fc:01:7c:e1:f7:63:23:db:
f7:22:bb:d3:96:dd:49:9f:72:44:f5:71:f4:a4:2c:
fe:04:55:f3:7f:18:1f:d1:7c:b2:33:fd:4c:c5:79:
5f:1e:fa:a6:38:9e:9b:7a:5e:ee:02:df:3f:30:ec:
8f:81:71:9c:c0:5c:7d:1c:b6:99:00:92:96:f0:5c:
d0:6c:d9:46:ef:85:f8:6d:6b:c2:32:45:f1:c1:73:
ed:cf:3e:d3:cc:6c:84:13:e0:09:4a:39:2e:5d:d6:
etc..
What do I need to do to get the file into the format (again from with in code, not command line)
-----BEGIN CERTIFICATE-----
data
-----END CERTIFICATE-----
and what is the corect terminolgy foer these two formats please?
Any help appreciated
Hylton
smime.p7s
Description: application/pkcs7-signature