Questions tagged [smime]

S/MIME (Secure/Multipurpose Internet Mail Extensions) is a standard for public key encryption and signing of MIME data.

291 questions
26
votes
3 answers

Extract public Certificate from SMIME Message (pkcs7-signature) with OpenSSL

How can i extract the public certificate from an smime message (pkcs7-signature) with OpenSSL?
x2on
  • 2,267
  • 3
  • 24
  • 44
22
votes
3 answers

Is there a difference between MIME and content type?

While using the f12 tools on ie, when I request a web page, the response header has a content type. Can this also be called MIME type? Or is there a difference?
developer747
  • 15,419
  • 26
  • 93
  • 147
13
votes
3 answers

Extract certificate from a PKCS7 signature in php

I need to extract the user certificate from a pkcs7 signature file. I can do it via the command line using the following: openssl pkcs7 -in somesign.pks7 -inform PEM -print_certs This will give me the entire certificate chain and I can process the…
user2761778
  • 131
  • 1
  • 5
12
votes
4 answers

certutil: function failed: SEC_ERROR_LEGACY_DATABASE: The certificate/key database is in an old, unsupported format

I had downloaded a verified (not self-signed) S/MIME certificate with iceweasel (firefox) which was stored in cert8.db Then I used: certutil -L -d in order to list the certificates, and then I extracted the…
stelios
  • 2,679
  • 5
  • 31
  • 41
11
votes
0 answers

S/MIME for OWA in Chrome on Linux

Here's my problem. I need to find a way of using S/MIME within Outlook Web App. The browser needs to be Chrome and the OS is Linux. I've searched all over with not much luck? I found Tampermonkey for chrome which lets you inject your own userscripts…
BMG
  • 111
  • 5
10
votes
5 answers

Whats wrong with being your own Certificate Authority and self-signing for your email encryption?

Is there any real reason to use a 3rd party Certificate Authority for your own email security? ( meaning using S/MIME ) I found I am able to become my own CAuthority and create my own self-signed root certificates...and they work just fine installed…
9
votes
2 answers

How to check if encrypted S/MIME message is also signed, without decrypting it

What is the easiest way (in terms of computing resources) to tell if an s/mime email message is signed with attached signature when this message is encrypted? If a message is just signed, it's easy. It has somewhat like: for attached signature …
Alex
  • 2,469
  • 3
  • 28
  • 61
8
votes
1 answer

OpenSSL decrypt fails but error code is 0

When I try to decrypt an encrypted S/MIME message using CMS in OpenSSL, the decrypt method returns me 0 which stands for didn't succeed. OpenSSL.org says.. CMS_decrypt() returns either 1 for success or 0 for failure. The error can be obtained from…
Chris
  • 3,057
  • 5
  • 37
  • 63
8
votes
3 answers

Why doesn't my key identifier match?

I'm attempting to decrypt an S/MIME email (sent originally via Outlook), and to do that, I'm using the bouncycastle API. I'm running into a snag, though. I have, in the Windows certificate store, the certificate for the recipient. I had previously…
Mark
  • 11,257
  • 11
  • 61
  • 97
7
votes
1 answer

Replicate OpenSSL smime command on iPhone/Cocoa

What I am attempting to do is replicate the following command run through Terminal on a Mac, but on the iPhone/in Cocoa: openssl smime -binary -sign -signer cert.pem -inkey key.pem -in file.txt -out encrypted -outform DER where "encrypted" is the…
Matt
  • 173
  • 1
  • 3
  • 10
6
votes
1 answer

conversion from opaque pkcs7 p7m to detached smime

Hi I couldn't find a way to convert an opaque pkcs#7(p7m) in a clear text deatached smime so that the signed content could be processed by regular mime libraries. I'd like to take p7m file and convert it to an smime message keping a valid…
zukka
  • 63
  • 5
6
votes
1 answer

Digitally sign email in Ruby with S/MIME

Is there a way in Ruby to digitally sign email messages with S/MIME? Our group uses PKI and our users are conditioned to expect digital signatures for important messages. I know I can invoke the openssl command line tool: openssl smime -sign…
Ryan Horrisberger
  • 955
  • 11
  • 16
6
votes
5 answers

EWS: Retrieving attachments from signed emails

I have a C# program that manages a resource mailbox by retrieving attachments and categorizing emails into sub-folders. An issue came up recently where the client wishes to send us signed emails, so when the program retrieves their attachments a…
Grant Bartel
  • 363
  • 1
  • 3
  • 21
5
votes
1 answer

Encrypting Headers S/MIME message/rfc822

I am looking to encrypt certain mail headers (Subject and Reply-To) which are being sent in an encrypted mail. I am taking an entire MIME (Headers included) and successfully encrypting it. I can send this S/MIME encrypted mail to my mail client…
jeeves
  • 1,871
  • 9
  • 25
5
votes
0 answers

How to sign and send a Mimultipart message in python?

Typically, sending a message with attachments is performed like this in python. import smtplib from os.path import basename from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart from email.mime.text import…
user2284570
  • 2,891
  • 3
  • 26
  • 74
1
2 3
19 20