How to create signature file in .p7s format ?The 'smime' command with -sign and -outform DER should do that.
Steve,
thank you.
I signed myscript.out file using commands:
openssl genrsa -out privkey.pem 1024
openssl req -sha1 -new -x509 -config openssl.cnf -key privkey.pem -out mycert.crt -days 1095 -outform DER
openssl req -sha1 -new -x509 -config openssl.cnf -key privkey.pem -out cacert.pem -days 1095
openssl smime -sign -in myscript.out -inkey privkey.pem -outform DER -binary -signer cacert.pem -out myscript.out.p7s -noattr -nocerts
After loading mycert.crt, myscript.out and myscript.out.p7s files to the device I received file authentication failure error.
Original mycert.crt and myscript.out.p7s files are authenticated OK. Files created by OPENSSL cause authentication error.
Why ?
Andrus.
PS. I can mail original and openssl created files. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]