Rank: Newbie
Groups: Registered
Joined: 7/26/2015(UTC) Posts: 1
I'm using the application with IIS on Windows Server 2012 R2 but I get the following error for every mail :
[Error] - BeginSignHash - Invalid provider type specified.
NativeErrorCode: -2146893804 DKIM Begin Sign Hash
I'm using a .pfx file with a 1024-bit RSA key.
Instead of using a .pfx file it would also be a good idea to allow the selection of a certificate which is already present in the local machine certificate store? This is also more secure since the certificate password doesn't have to be stored and the certificate can be imported into the store with the "allow export" option set to false.
Update: An additional error is logged when I select sha256 instead of sha1:
[Error] - BeginSignHash - Invalid provider type specified.
NativeErrorCode: -2146893804 SHA256 is not supported; Try SHA1 Now
The problem is most likely coming from a call to
CryptAcquireContextW(&context, 0, MS_ENH_RSA_AES_PROV, PROV_RSA_AES, CRYPT_VERIFYCONTEXT)
which fails and the last error is: NTE_BAD_PROV_TYPE (-2146893804) which is then reported.
Maybe you want to use BCrypt (BCryptCreateHash et al) on Windows Vista+ instead:
https://msdn.microsoft.c...windows/desktop/aa376217 (v=vs.85).aspx
Edited by user Sunday, July 26, 2015 9:55:35 PM(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)
Hi, Euclid That is because the pfx was generated by CNG (Cryptography API: Next Generation), current version doesn't support this pfx type. Current solution is: creating pfx file by DKIM Manager. We are working on the CNG and machine key storage, once it is done, we will release a new version. Thank you very much.
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.