Title: Message

Hi,

 I am trying to make pkcs7 encryption work with capicom of Microsoft.  I am facing problem in it.

Steps I am taking:

i)                     I am getting a DER encoded certificate from a MS client

ii)                   I encrypt the data on server with certificate using PHP function openssl_pkcs7_encrypt () whih I believe outputs the data in S/MIME format.

iii)                  I generate a PKCS7 structure with the command

Openssl smime  -in (S/MIME data generated)  -pk7out –out file.

 

I send this file to the MS client which is trying to use capicom API to decrypt it. We are having decrypting problems on the client side mostly getting the messages like

i) ASN.1 bad tag value

or

ii) ASN.1 unexpected end of data

or

iii) Or key not found.

 

We are not sure what the problem is. If any one can point us in right direction, it will be great.

Any help will be greatly appreciated.

 

Regards

Rohit

Reply via email to