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

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


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

Content-Type: multipart/mixed; boundary="_004_b8549515aad8411c8796baaa718b6b85rz1exc02internkasse_"

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

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

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

<html> ... </html>


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

Content-Type: application/pgp-signature; name="signature.asc"
Content-Disposition: attachment; filename="signature.asc"

Version: enQsig


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: 388
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,
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX