c # – X509Certificate and CryptoAPI

I am using an X509 certificate to access an online web service.
In recent days, the administrator has enabled CryptoAPI in Windows. Now he must always be asked for permission to access the certificate.

What do I have to do to fix this problem by including the key in the certificate?

var store = new X509Store (StoreName.My, StoreLocation.CurrentUser);
store.Open (OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly | OpenFlags.IncludeArchived);

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

foreach (var certificate in the store. certificates)
if (certificate.Thumbprint == null ||
string.CompareOrdinal (certificate.Thumbprint.ToUpper (), THUMBPRINT_CERTIFICADO.ToUpper ())! = 0)

LoggingWrapper.Log.Debug ($ "Certificado found");
return receipt