S/MIME (Secure/Multipurpose Internet Mail Extensions) is a standard for public key encryption and signing of MIME data.
Questions tagged [smime]
291 questions
5
votes
2 answers
Email Security: TLS and S/MIME
My understanding is that TLS is an encryption technique that allowing two STMP servers to communicate with each other securely. If HTTPS is used to connect to an STMP serve is that the same as using S/MIME?

Alexis
- 23,545
- 19
- 104
- 143
5
votes
4 answers
read .p7m file using c#
how to retrieve all information for .P7M file using c# application.
sample .p7m file :
please if possible then give me code or sample example link
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";…

Dharmesh Hadiyal
- 719
- 1
- 7
- 18
5
votes
1 answer
SMIME decryption for multiple recipients
I am suppose to develop a SMIME based application in JAVA. These are certain areas where I need more clarification about SMIME en/de-crypttion.
I understood how message encryption and decryption in case of a single recipient.
If There is only a…

Javad Shareef
- 496
- 7
- 18
5
votes
1 answer
Cannot generate Apple Passbook signature
I am writing a shell script to automatically generate an Apple Passbook signature file from manifest.json using p12 certificate. Here is what I do:
openssl pkcs12 -passin pass:"mypass" -in "mycert.p12" -clcerts -nokeys -out certificate.pem
openssl…

Tofig Hasanov
- 3,303
- 10
- 51
- 81
4
votes
1 answer
Sending an e-mail with an attachment using S/MIME (PHP)
I'm trying to send an encrypted email with an attachment from PHP, however, my e-mail is just diplayed as plain text in the email-client (in this case MS Outlook).
This is the code I use to send the email:
$semi_rand = md5(time()); …

user254875486
- 11,190
- 7
- 36
- 65
4
votes
1 answer
How to Decode/extract smime.p7m file contents of SMIME signed email using Ruby OpenSSL library
I have a signed email message as string. And I want to get string with whole unsigned message with attachments and body that I can parse with, for example, Mail gem.
I found question: Decode/extract smime.p7m file contents (email with embedded…

petRUShka
- 9,812
- 12
- 61
- 95
4
votes
1 answer
How to add smime certificate to outlook contacts programmatically?
We're currently working on a project that requires adding S/MIME certificates to outlook contacts. Currently there's no api to add or retrieve S/MIME related information with existing solutions (We looked into Graph API but it doesn't provide the…

null_override
- 467
- 3
- 10
- 30
4
votes
1 answer
Does AWS SES support using S/MIME to sign and encrypt the email
Can someone please let me know does AWS SES support using S/MIME to sign and encrypt the email.

varun teja
- 126
- 9
4
votes
1 answer
How to use SHA1 digest during signing with OpenSSL::PKCS7.sign when creating SMIME message
The following code
body = "This is the message body"
pkcs7 = OpenSSL::PKCS7.sign @certificate, @pkey, body
pkcs7.detached = true
smime_signed = OpenSSL::PKCS7.write_smime pkcs7, body
will generate
MIME-Version: 1.0
Content-Type: multipart/signed;…

Laurens
- 2,420
- 22
- 39
4
votes
1 answer
How to create an x-pkcs7-signature s/mime message?
I am trying to create x-pkcs7-signature s/mime messages in C#. I've been experimenting with Mimekit and can only make pkcs7 messages.
Does anyone know what I need to do to create x-pkcs messages or point me to some examples?
Regards

Ace Grace
- 631
- 1
- 7
- 21
4
votes
2 answers
Decode/extract smime.p7m file contents (email with embedded files) with OpenSSL?
We have an old process (VBScript) that reads a common mailbox and processes certain emails into a database.
New regulations have all messages with attachments now being digitally signed.
The process now only extracts one file (smime.p7m). Using a…

David
- 892
- 4
- 16
- 41
4
votes
1 answer
SMIME can't be validated by receiver when using newer version of Bouncy Castle
I am using BC to encrypt and sign an SMIME message for use with AS2. The code we have works fine with an absolutely ancient version of bouncy castle, bcmail-1.4:125. Upgrading to anything newer causes the receiver of the message (not too ancient…

Andrew
- 8,322
- 2
- 47
- 70
4
votes
2 answers
Javascript library for decryption of SMIME.p7m files
I am looking for a way to decrypt S/MIME emails on client-side. I specifically don't want client to share private key with the server and thus need to find a way for client to do everything on it's own.
I do not need to support multiple browsers, so…

nikib3ro
- 20,366
- 24
- 120
- 181
4
votes
1 answer
CMS (PKCS#7) RecipientInfo
I am actually working on a function which should extract RecipientInfo from PKCS7 mime encrypted message. The reason why I want to do this is, that I want to get all mail addresses (or at least the keyids/fingerprints) the message is encrypted…

boesing
- 345
- 3
- 10
4
votes
1 answer
Programmatically-generated, digitally signed email appears correct in Outlook, but not in Gmail
I'm using C#, .NET 4.0 to send a digitally-signed email, like so:
private void SendMailMessage(string emailTo)
{
MailMessage message = new MailMessage();
message.From = new MailAddress(fromAddress);
message.To.Add(new…

Ryan Ries
- 2,381
- 1
- 24
- 33