On Fri, Apr 29, 2005, Andrus wrote: > I need to sign a file for downloading into pinpad. > > Pinpad requires signature as separate file with .p7s extension. It can also > load certificate used for signature checking. > > How to create signature file in .p7s format ? > > Hex dump of some of the existing p7s file looks as follows: > > 30 82 01 81 06 09 2A 86 ? 48 86 F7 0D 01 07 02 A0 > 82 01 72 30 82 01 6E 02 ? 01 02 30 0B 30 09 06 05 > 2B 0E 03 02 1A 05 00 30 ? 18 06 0A 60 86 48 01 8C > 9A 40 01 02 02 A0 0A 16 ? 08 33 44 45 53 2E 76 73 > 6F 30 82 01 40 30 82 01 ? 3C 02 01 02 30 2E 30 24 > 31 22 30 0E 06 03 55 04 ? 0A 13 07 44 65 66 61 75 > 6C 74 30 10 06 03 55 04 ? 2D 03 09 00 02 01 00 00 > 00 D4 BD 4B 02 06 30 30 ? 30 30 30 30 30 09 06 05 > 2B 0E 03 02 1A 05 00 A2 ? 42 30 40 30 19 06 09 2A >
The 'smime' command with -sign and -outform DER should do that. Steve. -- 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 [EMAIL PROTECTED]