login about faq

My decryption code used GetLastCert() after decryption to note which certificate was used in the decryption. This appears to no longer work in the latest release of the libraries (C# .Net4).

The documentation indicates that GetLastCert() is deprecated, and suggests using GetSignerCert(0) instead. But this won't work for decryption (at least it didn't for me).

Is there an easy way that I've missed to determine which of the certs in my store were used to decrypt a message?

asked Oct 29 '14 at 16:36

Bob%20Hodge's gravatar image

Bob Hodge

I'll have a new method added, such as GetDecryptCert(), hopefully tomorrow..


answered Oct 30 '14 at 22:56

chilkat's gravatar image

chilkat ♦♦

Sorry for the delay. Here are new builds that now have a Crypt2.GetDecryptCert() method. It will return the certificate used for decryption. If the decrypt failed, then it returns null.

32-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet4-9.5.0-win32.zip

64-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet4-9.5.0-x64.zip


answered Nov 04 '14 at 12:42

chilkat's gravatar image

chilkat ♦♦

Excellent! Thanks very much for the attention.


answered Nov 04 '14 at 12:50

Bob%20Hodge's gravatar image

Bob Hodge

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 29 '14 at 16:36

Seen: 1,703 times

Last updated: Nov 04 '14 at 12:50

powered by OSQA