Rank: Newbie
Groups: Registered
Joined: 3/3/2020(UTC)
Posts: 0
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
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,154
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
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
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.