S/MIME (Secure/Multipurpose Internet Mail Extensions) is a standard for public key encryption and signing of MIME data.
Questions tagged [smime]
291 questions
1
vote
1 answer
Can I determine whether MFMailComposeViewController will use S/MIME or not?
I would like to use standard MFMailComposeViewController but I need to tell user, whether message that was sent was sent with S/MIME (in fact I need to disable email creation if S/MIME is disabled). I understand that it is a strange request, but…

bealex
- 10,004
- 1
- 21
- 27
1
vote
1 answer
How to send attachment on s/mime email
I'm trying to send an encrypted mail, using s/mime protocol, but the mail client doesn't acknowledge the attachments, and doesn't decrypt them. I've checked some answers on stack overflow, but none of them worked for me. Please note that the…

eplaut
- 666
- 1
- 7
- 26
1
vote
0 answers
how does openssl smime determine micalg parameter?
When I build a signed S/MIME message using openssl smime -sign, how does openssl determine what value to use for the micalg parameter? (ie: micalg="sha-256" in my example below...) I can see this value in the S/MIME text and in the ASN of the…

Alex
- 258
- 1
- 10
1
vote
1 answer
Thunderbird not able to decrypt s/mime email "Message cannot be decrypted"
I'm encrypting (no need to sign) a message in python using a public key .pem file that I extracted from a .pfx file via the following OpenSSL commands:
openssl pkcs12 -in certificate.pfx -nokeys -out publickey.crt
openssl x509 -in publickey.crt…

David Sierra
- 11
- 2
1
vote
0 answers
Sending SMIME Encypted Mail( BouncyCastle) fails with java.io.IOException: ...has to be an instance of iaik.security.smime.EncryptedContent
I am stuck sending an S/MIME encrypted mail.
The Exception is always:
javax.mail.MessagingException: IOException while sending message;
nested exception is:
java.io.IOException: javax.mail.MessagingException: Cannot write this object. It has to be…

user20144981
- 11
- 1
1
vote
1 answer
Get .crt & .key files from .cer file
The following command is used to sign a string via openssl:
smime -sign -signer cert.crt -inkey key.key -engine gost -binary -noattr
Given a .cer file that was said to contain key within self how to I execute the same command?
I'd assume 2…

Nick Farsi
- 366
- 4
- 19
1
vote
1 answer
How to attach in SMIME m2crypto a file in python?
I' am trying to implement a SMIME Mail with a encrypted text and attachment. So far I did the following:
#Example for parameter values:
#subject = "abc"
#content = "some text"
#attachment = some file
#destination = "abc@abc.com"
#sender =…

yoloknight
- 11
- 1
1
vote
1 answer
S/MIME for public key encryption and signing of email explained
I am doing my best to understand how this works. I read numerous articles, but always get confused.
From my limited understanding, both sender and recipient must have their client installed with a key/certificate provided by a certificate authority.…

Vince
- 3,979
- 10
- 41
- 69
1
vote
1 answer
MIMEKIT MultipartSigned.Verify How can I disable Certificate Revocation list ceck?
is there anyway to disable the Certificate revocation list check when using MimeKit.Cryptography.MultipartSigned.Verify ?
The Party transmitting to me cannot seem to get their CRL distribution point correct and I would like to simply disable the…

The Great Howdo
- 13
- 2
1
vote
0 answers
How to get "smime.p7s" from email and extract sender and organization name in Node.js
My task is to ensure that the email has a digital signature and to read the sender's and organization's names.
I tried to use "imap" package. This snippet reads the body content and then tries to parse the attributes
msg.on('body', function(stream,…

Stanislav Serdiuk
- 421
- 1
- 6
- 21
1
vote
1 answer
Sending S/MIME Signed Mails with Django
Is there a way to use the wrappers provided by Django to send signed or even encrypted emails?
We use S/MIME in our company and it's required that all mails are signed.
I currently send emails via SendGrid:
EMAIL_HOST =…

Alex_siem
- 13
- 3
1
vote
0 answers
Encryption/decryption functions working differently within Outlook add-in versus unit tests
I am working on an Outlook add-in that S/MIME encrypts/decrypts an email that you are currently composing. I have two functions shown at the end that perform S/MIME encryption/decryption respectively utilizing PKI.js. When running unit tests testing…

joshuayuen99
- 11
- 1
1
vote
1 answer
How to Specify Key File in Set-Mailbox -UserSMimeCertificate
I am trying to load an S/MIME signing certificate for a specific Outlook 365 user via PowerShell. The command I am supposed to use is:
Set-Mailbox -UserSMimeCertificate
The problem is, I have the S/MIME certificate…

ChaosFreak
- 574
- 1
- 6
- 18
1
vote
2 answers
How to use OPENSSL to sign an email message and CURL to send it?
I would like to know how to sign it with an email digital certificate and then use CURL to send this signed email message.
Below is an example of a simple TEXT/PLAIN email message that I would like to sign.
Content-Type: text/plain;…

suchislife
- 4,251
- 10
- 47
- 78
1
vote
0 answers
Is there a way to generate a Microsoft Serialized Certificate Store without Windows?
Our company uses exclusively Apple devices. At the same time we use Microsoft 365. Using S/MIME on the desktop works but using S/MIME with Outlook for iPhone leads to Outlook for iPhone complaining about the certs not being valid. Earlier certs were…

MasinAD
- 31
- 6