On Fri, Oct 18, 2002, Rohit Kumar wrote:

> 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
> <http://www.php.net/manual/en/function.openssl-pkcs7-encrypt.php>  ()
> 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.
> 
>  
> 
Why don't you generate it directly using smime -encrypt?

Steve.
--
Dr. Stephen Henson      [EMAIL PROTECTED]            
OpenSSL Project         http://www.openssl.org/~steve/
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to