Search The ForumSearch   RegisterRegister  LoginLogin


 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: After upgrade MailBee.Net problem Post ReplyPost New Topic
Message << Prev Topic | Next Topic >>

Joined: 23 August 2022
Location: Czech Republic
Online Status: Offline
Posts: 1
Posted: 23 August 2022 at 6:11am | IP Logged Quote tomas155

Hello we upgrade MailBee.NET from to version

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

Back to Top View tomas155's Profile Search for other posts by tomas155
AfterLogic Support
AfterLogic Support

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 23 August 2022 at 8:04am | IP Logged Quote Alex

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.


Back to Top View Alex's Profile Search for other posts by Alex

Joined: 19 July 2023
Location: Algeria
Online Status: Offline
Posts: 2
Posted: 14 September 2023 at 1:17am | IP Logged Quote heretruffle

I also have the same problem
Back to Top View heretruffle's Profile Search for other posts by heretruffle Visit heretruffle's Homepage
AfterLogic Support
AfterLogic Support

Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6071
Posted: 14 September 2023 at 1:21am | IP Logged Quote Igor

Please contact us via HelpDesk on this. Thank you.

Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide