Author |
|
tomas155 Newbie
Joined: 23 August 2022 Location: Czech Republic
Online Status: Offline Posts: 1
|
Posted: 23 August 2022 at 6:11am | IP Logged
|
|
|
Hello we upgrade MailBee.NET from 9.0.4.472 to version 12.3.0.647
But after upgrade we have some problem with private key.
dk.Sign We have some error like this:
Index of mail=1: Invalid cryptographic private key format.
The code on last line dk.Sign crashes.
DomainKeys dk = new DomainKeys();
if (sPrivateKey.Length > 100 && sDomainKey.Length > 0)
{
byte[] privateKey = Encoding.GetEncoding("ASCII").GetBytes(sPrivateKey);
clientBeeSMTP.Message = dk.Sign(messageBee, null, System.Text.Encoding.ASCII.GetString(privateKey), false, sDomainKey);
Thank you
Tomas.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 23 August 2022 at 8:04am | IP Logged
|
|
|
Hi Tomas,
Can you send the private key file via Helpdesk?
If you cannot provide this, you can at least replace some chars in base64 body of the key but make sure all CrLfs, special characters and so on remain in place (and the file size remains the same). We need to see if the file format is OK.
Since v9, file format check was made more rigorous to avoid crashing later, when the key is transmitted to Win32 API (which led to unwanted effects). Maybe the key you're supplying has some line separators missing or something like that.
Regards,
Alex
|
Back to Top |
|
|
heretruffle Newbie
Joined: 19 July 2023 Location: Algeria
Online Status: Offline Posts: 2
|
Posted: 14 September 2023 at 1:17am | IP Logged
|
|
|
I also have the same problem
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 14 September 2023 at 1:21am | IP Logged
|
|
|
Please contact us via HelpDesk on this. Thank you.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|