Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

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

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 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 View tomas155's Profile Search for other posts by tomas155
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

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.

Regards,
Alex



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

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
 
Igor
AfterLogic Support
AfterLogic Support


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

Please contact us via HelpDesk on this. Thank you.

--
Regards,
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