Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
nigelstephens  
#1 Posted : Tuesday, March 3, 2020 7:33:28 AM(UTC)
nigelstephens

Rank: Newbie

Groups: Registered
Joined: 3/3/2020(UTC)
Posts: 0
United Kingdom
Location: Gloucester

I'm writing the code to send email using the examples. I'm including DKIM so I have created a certificate and downloaded it and placed in my web root folder.
I'm attempting to get the public key with the code.

Certificate oCert = new Certificate();
oCert.Load("C:\\Users\\Nigel\\Documents\\Visual Studio 2015\\Projects\\TonerPeopleWebSite\\TP_Web\\tonerpeopleDKIM_Local.txt", "MyCertificatePassword", Certificate.CertificateKeyLocation.CRYPT_USER_KEYSET);
Console.WriteLine(oCert.PublicKey);


However, the oCert.Load raises and error "An error occured during an encode or decode operation".
I have tested the password when installing the certificate locally and all is fine with that.

Can anyone make any suggestions what is wrong?

Edited by user Tuesday, March 3, 2020 7:52:07 AM(UTC)  | Reason: Not specified

ivan  
#2 Posted : Tuesday, March 3, 2020 7:10:19 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
could you send your certificate and password to support@emailarchitect for assistance? It seems that your file is not in p12 format.

Finally problem is solved (invalid file path)

Edited by user Wednesday, March 4, 2020 3:24:19 AM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.067 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.