Hello All, This is the first time I am posting to this forum.
If I am asking this question in the wrong forum please redirect me. I am using OpenSSL 0.9.8. I need to create a detached pkcs#7 signature of some piece of data and store the signature in BER encoded format. >From the man pages I understand that I can use pkcs7_sign function with appropriate flags to get the detached signature. The problem I face is with writing the signature into a file in BER encoded format. Only SMIME_write_PKCS7()seems to be available for outputting the signature. d2i_PKCS7_bio_stream() is documented to have been implemented in 0.9.9 but I could not find that in even the latest development snapshot, obviously it is yet to be implemented. Is there any other way to output pkcs7_signed data to BER format? Thanks for your time. Thanks and regards. Vijay