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
s/mime v3 with M2Crypto
I would like to send a mail with a s/mime v3 attachment through SMTP.
The excellent HOWTO below describes the procedure in detail for s/mime v2.
http://sandbox.rulemaker.net/ngps/m2/howto.smime.html
I would greatly appreciate any help in doing the…

Arye
- 21
- 2
2
votes
2 answers
S/MIME in Java without JCE
I'm trying to write an applet that would sign e-mail with S/MIME.
Obviously I want to make one small jar with only the required stuff.
Obviously the Java way of doing that involves having a huge sacred signed Bouncy Castle JCE jar around.
The…

alamar
- 18,729
- 4
- 64
- 97
2
votes
1 answer
Reading OpenSSL generated, PEM/DER formatted, S/MIME messages in Java
I need to be able to read in Java a S/MIME file generated from OpenSSL. The openssl command looks like
openssl smime -encrypt -in test_message.txt -out test_out.pem -outform pem certificate.pem
This creates a file that looks like
-----BEGIN…

user3097988
- 31
- 2
2
votes
1 answer
Encrypt a big file using openssl smime
I have generated a local certificate in my system and I am trying to encrypt a file through smime. But when I run the command it give me error Unable to load certificate Expecting trusted certificate Error 1024. This is my script that I am trying to…

user2216168
- 21
- 1
- 1
- 4
2
votes
2 answers
Adding certificate in userSMIMECertificate attribute of inetOrgPerson
I'm going to publish a certificate for my email using LDAP.
I already have a LDAP up and running (AD LDS) on windows 2012.
I'm going to add records using ldif file.
Here its contents
dc: dc=mysubdomain,dc=mydomain,dc=com
dn:…

Oybek
- 7,016
- 5
- 29
- 49
2
votes
1 answer
M2Crypto: extract message from opaque signed S/MIME (pkcs7-mime)
I have a problem with extracting message data from opaque signed S/MIME message, like:
To: ngps@post1.com
From: ngps@mpost1.com
Subject: testing
MIME-Version: 1.0
Content-Disposition: attachment; filename="smime.p7m"
Content-Type:…

mykhal
- 19,175
- 11
- 72
- 80
2
votes
2 answers
S/Mime Encrypting a string
I have been tasked with encrypting a string using S/Mime encryption. Eons ago, the firm I work for bought a component for this (from IPWorks) but we have had untold bundles of grief getting their component to play nicely on our servers. Not a…

Daniel Elliott
- 22,647
- 10
- 64
- 82
2
votes
1 answer
Digital signature failing when certificate expired
I have recently encountered something pretty much confusing to me.
I don't know if this is a "problem" of Outlook, or it's by design and, in that case, my understanding of digital certificates is wrong.
I am using S/MIME for digital signing of my…

Michal Boska
- 1,041
- 1
- 8
- 26
2
votes
0 answers
smime email decryption
I am trying to decrypt signed and encrypted emails using a certificate and private key. This works perfectly on encrypted emails. If the email is signed and encrypted it adds extra characters to the begining and end of any file attachment data. …

user1813798
- 51
- 2
2
votes
1 answer
Why does verify smime signature fail?
I've got an email with a signature which I'm trying to verify.
I am using openssl
openssl smime -inform SMIME -CAfile all.pem -verify -in signed.eml
to check, which gives errors:
4144:error:0D07209B:asn1 encoding routines:ASN1_get_object:too…

GWu
- 2,767
- 18
- 28
2
votes
1 answer
openssl smime in ruby/rails
So, i have this application that creates a zip file with images and stuff
and i want to sign it using smime.
if i use the terminal command:
openssl smime -binary -sign -passin "pass:MYPASS" -signer ./MyCertificate.pem -inkey ./MyKey.pem -in…

Nicos Karalis
- 3,724
- 4
- 33
- 62
1
vote
1 answer
PHP Reading a S/Mime email p7m attachment (Base64?)
We have a system using Symantec's PGP Universal Web Messenger.
This means that emails are sent to me using s/mime encryption from a pkcs12 cert.
I'm having a bit of trouble reading the messages in PHP.
I have all the imap code but now how do I read…

Stephen Adrian Rathbone
- 327
- 7
- 19
1
vote
1 answer
PHP imap_fetchmime equivalent for 5.2
I need an function like
imap_fetchmime
For PHP 5.2 (this function is only available on PHP 5.3.6 upwards).
I need the mime headers to decrypt mail however we are still using 5.2 and we are not yet ready to upgrade.
How can I fetch the mime headers…

Stephen Adrian Rathbone
- 327
- 7
- 19
1
vote
2 answers
S/Mime signing in PHP - Which file is which cert?
I'm trying to send S/Mime signed and encrypted emails.
I have this code:
// Sign the message first
openssl_pkcs7_sign("inc/admin/email/body.txt","inc/admin/email/body/enc.txt",
"signing_cert.pem",array("private_key.pem",
"test"),array());
// Get…

Stephen Adrian Rathbone
- 327
- 7
- 19
1
vote
1 answer
Using OpenSSL's CMS_encrypt() in Objective-c
I would like to use OpenSSL's cms library to encrypt a file with a certain certificate using the CMS_encrypt() method. (I guess this should be the right one)
Does anyone has a small sample about using CMS_encrypt()?
Thanks

Chris
- 3,057
- 5
- 37
- 63