how to generate smime with file attachenment (eg, csv , pdf ) through openssl
开发者_Python百科I could able to generate SMIME content through openssl without any file attachment.
But i need to generate SMIME content with file attachment.
You need to use a tool like makemime
to generate a MIME message of type multipart/mixed
that includes your text message and attached files as MIME components.
You would then pipe that plaintext multipart/mixed
message through openssl smime
to turn it into an S/MIME message.
精彩评论