S/MIME (Secure/Multipurpose Internet Mail Extensions) is a standard for public key encryption and signing of MIME data.
Questions tagged [smime]
291 questions
2
votes
1 answer
How to sign and encrypt a message using S/MIME in PowerShell
I am attempting to create a PowerShell script that will:
Build a message
Sign the message using my private S/MIME certificate
Encrypt the message using the S/MIME public cert of the recipient
Send the email that has been signed and encrypted
I…

gerard
- 835
- 11
- 27
2
votes
0 answers
Decrypttion fails on S/MIME enveloped message with OAEP key encryption?
With Java and BouncyCastle I am able to decrypt lots of S/MIME enveloped messages.
But when the key encryption algorithm is 1.2.840.113549.1.1.7 (id-RSAES-OAEP), the decryption fails (stack trace at the end of this question).
The line where it…

Dan
- 59
- 5
2
votes
0 answers
Sign an S/MIME message with openssl or pure node.js
I received .pem, .cer, .p12 files and related passPhrase for these from from Bank tech team .
I should sign a string like this:
8ad281ad-1fdf-4ef9-a308-31388b617c3c-b6767a8a-dbc7-4be0-86ff-d27b47ed0df3
to generate a valid signed-data like…

Developia
- 3,928
- 1
- 28
- 43
2
votes
1 answer
S/MIME email encryption library for iOS
I am trying to find a S/MIME email encryption library for an iOS email app I am creating in Swift. I have been having trouble trying to find a library for the encryption, has anyone had any experience with this?
I have tried OpenSSL but have run…

Sarah Sharkey
- 23
- 2
2
votes
1 answer
Data verification with openssl smime fails
I am using openssl smime to sign and verify data.
To sign text file using openssl I sue the following command:
openssl smime -sign -in sample.txt -out mail.msg -signer cert.pem -inkey key.pem
Then I proceed to verification:
openssl smime -verify…

TheByeByeMan
- 1,396
- 2
- 28
- 50
2
votes
1 answer
JRuby error loading private key with jruby-openssl in bouncycastle
I'm trying to sign emails sent by my application with an s/mime certificate. The application uses JRuby 1.7.26 and the newest version of the jruby-openssl gem. (Version 0.9.19).
When I try to load my private key like this:
key_file =…

lukas
- 21
- 4
2
votes
1 answer
Can I have S/MIME as part of a multipart/mixed message?
I am trying to send an S/MIME encrypted email through a pre-defined email distribution system.
I give them a perfectly valid email, with all the right headers and correctly encrypted content.
The problem is, that the system rips the email apart and…

func0der
- 2,192
- 1
- 19
- 29
2
votes
1 answer
OpenSSL S/MIME signature with .NET
For an application I'm developing I need to create a signature file before I can upload files. The documentation of it explains how to do this with openssl:
First you need to prepare your key:
$ openssl pkcs12 -in certificate.pfx -passin…

Mew
- 1,049
- 7
- 17
2
votes
1 answer
How to get PKCS7_sign result into a char * or std::string
I try to write a little mail milter to sign mails with S/MIME. So far, I have completed to the code up to signing the mail. I used the demos/smime code examples in openssl to do the job. Unfortunately the examples demonstrate how to write a input…

Christian Rößner
- 447
- 1
- 5
- 18
2
votes
0 answers
How to add s/mime certificate to existing contact in outlook2013 easily
i was wondering if any of you know of an easy (and working) way of importing a new mail certificate to an already existing contact (holding an also already existing different mail cert) in Outlook 2013.
The problem was already discussed in…

Loki
- 21
- 2
2
votes
0 answers
How do I send a real signed email in python?
I have followed this example to send a signed email in python.
The problem is that I need to be able to send an email that has plain text, HTML text and other attachments. When I try this, all I get in the end email is the plain text.
Here is my…

TheBigOnion
- 91
- 9
2
votes
2 answers
Create multipart using JavaMail
I would like to create a MimeMessage which must have two parts as shown below picture (Part_0 and Part_2)
I'm trying to use below code to generated s/mime
public static void main(String[] a) throws Exception {
// create some properties and…

Winston
- 1,800
- 2
- 20
- 30
2
votes
0 answers
Certificate to read Digitally Signed Emails in EWS
I am trying to read digitally signed emails in EWS. Specifically I am interested in the file attachments in the email. I am using the following code with no success:
SignedCms signedCms = new SignedCms();
signedCms.Decode(filebyte)
Where filebyte…

Dogahe
- 1,380
- 2
- 20
- 50
2
votes
0 answers
openssl smime encrypt and decrypt
I'm trying to encrypt and decrypt using openssl. Here's what I do to encrypt
openssl smime -encrypt -binary -des -in in1.txt -out out1.dat -nosigs my.crt
out1.dat gets created.
However when I try to decrypt using the command
openssl smime…

Dhiren Ghelani
- 21
- 1
- 4
2
votes
1 answer
Java - Using JavaMail to send and receive S/MIME messages
JavaMail makes it easy to send MIME messages. How can I use it to send S/MIME? (I know JavaMail-Crypto is designed to solve this, but it seems incomplete and abandoned). I'd like to send and receive, encrypt and sign, decrypt and verify, using…

SRobertJames
- 8,210
- 14
- 60
- 107