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

Notification

Icon
Error

Options
Go to last post Go to first unread
Euclid  
#1 Posted : Sunday, July 26, 2015 6:25:56 PM(UTC)
Euclid

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

ivan  
#2 Posted : Tuesday, July 28, 2015 5:51:36 PM(UTC)
ivan

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.
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.051 seconds.

EXPLORE TUTORIALS

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