S/MIME mime type application/octet-stream

2014-11-06 Thread Jan Hejl
Hello, i found that the file command detects S/MIME attachment (smime.p7s) within a signed email as an application/octet-stream insted of application/pkcs7. Author of the file tool tells that it's impossible to detect application/pkcs7. Does anybody knows why? Thank you Jan smime.p7s

Re: [openssl-users] S/MIME mime type application/octet-stream

2014-11-06 Thread Erwann Abalea
This is my first attempt ever at magic(5) voodoo: 0 byte 0x30 0x01 byte 0x80 0x02 string \x06\x09\x2a\x86\x48\x86\xf7\x0d\x01\x07\x02 Indefinite length pkcs7-signedData !:mime application/pkcs7 0x02 string \x06\x09\x2a\x86\x48\x86\xf7\x0d\x01\x07\x03 Indefinite length pkcs7-envelopedData