Hi!
I ahve been tasked with implementing a library that can create and receive encrypted messages in the S/MIME standard. A message can look like this:
I have no idea how to do this? I have looked at some examples but they include 3rd part libraries and are heavily focused on sending emails.
I was hoping I could use the HttpWebRequest and manually create the message, but it doesn't seem to work considering I have to encrypt/decrypt the messages.
Anyone with ideas? I have spent 3 Days googling but haven't found anything that could help me.
/S
I ahve been tasked with implementing a library that can create and receive encrypted messages in the S/MIME standard. A message can look like this:
Code:
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha1"; boundary="----3239E3706D19BB8325856E4D1909EA94"
This is an S/MIME signed message
------3239E3E06D19BB8325856E4D1909FA94
Content-Type: text/plain
eX1W7TiIG4DK4xyx5MRU
------3239E3E06D19BB8325856E4D1909FA94
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smi.p7s"
MIICugYJKoZIhvcNAQcCoIICqzCCAqcCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3
DQEHATGCAoYwggKCAgEBMIGDMHoxFzAVBgNVBAsTDnNhZi5kZXYud2lwLnNlMTUwI was hoping I could use the HttpWebRequest and manually create the message, but it doesn't seem to work considering I have to encrypt/decrypt the messages.
Anyone with ideas? I have spent 3 Days googling but haven't found anything that could help me.
/S