• 0

C++ and x.509 digital certificate help


Question

i have been working on extracting the data out of a x.509 certificate, decoding it and displaying it on screen. this started off because i am a relativly new programmer with c++ and wanted to get to grips with a more 'chunky' piece of coding rather than 'hello world'.

so far i have managed to read the cert into buffer, trust me not as easy as it sounds!

I have then made a context and cert_info structure out of the data, but it is still in encoded format.

the next step is to call CryptDecodeObjectEx from the wincrypt API, pass the structure pointers and an ASN.1 OID value to the function and let it work its magic. this is where my world collapses, the function returns an error that a bad ASN.1 tag has been met. i have tried this on several certs with no luck.

if anybody has an clue\experience with cryptographic functions and the wincrypt API i would be grateful to them. if you would like to see the code i have so far i will gladly pm it to you.

p.s. as a little extra incentive i have a gmail invite to give away for any help (if it interests anyone)

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.