Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: IsSecure, signature.asc & SecureDecode
laurentbe

From: Anderlecht, Belgium
Posts: 27
Member Since: 10/21/03
posted July 17, 2015 8:23 AM

Hi,

I'm using the latest dll version.

We receive emails containing signature.asc file. It comes from https://www.gnupg.org/ progject.

For these emails:
- IsSecure returns true
- SecureEncoding type is SignedDetached

If I use SecureDecode() it throws an exception:

"System.FormatException: Second part (Parts[1]) is not the required digital signature.
  at Dart.Mail.MailMessage.SecureDecode(X509Certificate2Collection decryptingCertificates, Boolean importSigningCertificate)
  at Dart.Mail.MailMessage.SecureDecode()

After this exception IsSecure still returns true.

Although the email is secured it is not encrypted and can be processed.

I don't get when I have to use SecureDecode() and when it is not necessary.
Do I have to call it only when SecureEncoding type is Encrypted?
Could you give me a hint?


FYI: the email structure:

MIME-Version: 1.0

--NetatworkMailGateway_4cce080c-785f-49f1-a1d1-2bcfbeece277
Content-Type: multipart/mixed; boundary="_004_b8549515aad8411c8796baaa718b6b85rz1exc02internkasse_"

--_004_b8549515aad8411c8796baaa718b6b85rz1exc02internkasse_
Content-Type: multipart/alternative; boundary="_000_b8549515aad8411c8796baaa718b6b85rz1exc02internkasse_"

--_000_b8549515aad8411c8796baaa718b6b85rz1exc02internkasse_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Clear text
--_000_b8549515aad8411c8796baaa718b6b85rz1exc02internkasse_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html> ... </html>

--_000_b8549515aad8411c8796baaa718b6b85rz1exc02internkasse_--

--_004_b8549515aad8411c8796baaa718b6b85rz1exc02internkasse_
Content-Type: application/pdf; name="SD9103315071414580.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="SD9103315071414580.pdf"
...
--_004_b8549515aad8411c8796baaa718b6b85rz1exc02internkasse_--

--NetatworkMailGateway_4cce080c-785f-49f1-a1d1-2bcfbeece277
Content-Type: application/pgp-signature; name="signature.asc"
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: enQsig
...
-----END PGP SIGNATURE-----

--NetatworkMailGateway_4cce080c-785f-49f1-a1d1-2bcfbeece277--
laurentbe

From: Anderlecht, Belgium
Posts: 27
Member Since: 10/21/03
posted July 24, 2015 4:10 AM

any news?
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 377
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted July 24, 2015 2:52 PM

Thank you for your recent post. The component does not currently support verifying emails signed using the OpenPGP/PGP specification. Support is included for S/Mime, which is a separate specification. We've added a feature request to consider for a future release.(Feature Request #697)

Please email jamie.powell@dart.com if this feature is required immediately and I will be happy to provide information on our priority support options.

Best regards,
Jamie
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX