On Thu, Jan 03, 2008, Pascal Nobus wrote:

> Hi,
> I've got a problem with signing messages for users who use Outlook 2003.
> I sign the mails (invoices) using openssl_pkcs7_sign with conjunction to
> PEAR:Mail:Mime.
> Everyone can see the mail and the signature without an problem.
> Only users who use Outlook 2003 (11.8169.8172) SP3, got an error the
> signature is wrong.
> I have a server with Outlook 2003 (11.5608.5606), and checked there: no
> problem!
> I tried it first with
> "/usr/bin/openssl smime -sign -inkey /home/popuser/ssl2/sales.key
> -signer /home/popuser/ssl2/sales.cert -from ''
> -subject 'Factuur / Invoice' -in test.txt -to
> ''|/usr/sbin/sendmail -fsales@webservice.be
> info@webservice.be"
> After the problem I switched to using PEAR:Mime because of the linebreak
> problems, but it seems not to help.

Try deleting carriage returns on the output e.g. by piping though:

tr -d '\015'

Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org