Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: The CryptAcquireContext function fails and NTE_PROV_TYPE_NO_MATCH is returned on a Host Integration Server client


View products that this article applies to.

Symptoms

When a Host Integration Server client tries to use the CryptAcquireContext function, the function fails and NTE_PROV_TYPE_NO_MATCH is returned under certain conditions

↑ Back to the top


Cause

This problem occurs because a wrong provider type is specified, as in the following example:

CryptAcquireContext ( & hProv, NULL, MS_ENH_RSA_AES_PROV, PROV_RSA_FULL, CRYPT_NEWKEYSET) error: 8009 001B

If the first call to the CryptAcquireContext function fails (returns as false) and the NTE_BAD_KEYSET error is returned, a second request is sent that uses CRYPT_NEWKEYSET. However, this second call uses the wrong provider type.

In this case, you may receive the following error message:

Provider type does not match registered value.

↑ Back to the top


Resolution

The fix that resolves this problem is included in the following cumulative updates for Host Integration Server:

Cumulative Update 2 for Host Integration Server 2016

Cumulative Update 4 for Host Integration Server 2013

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


References

Learn about the terminology Microsoft uses to describe software updates.

↑ Back to the top


Keywords: kbQFE, kbfix, kbBug, kbExpertiseInter, kbsurveynew

↑ Back to the top

Article Info
Article ID : 4022064
Revision : 15
Created on : 1/9/2018
Published on : 1/9/2018
Exists online : False
Views : 319