Error getting a certificate stored with SealSign Certificate from IIS in an API in .net 4.6


I want to open a certificate stored with SealSign from a web API in .net 4.6.

The certificate is saved in personnel and is well displayed when I access the Certificate Manager. My problem is when I try to open the certificate from code, when I debugge the application from IIS Express it recovers all the personnel certificates. My problem is when I deploy the application in IIS , where it retrieves all personnel certificates except this one stored with SealSign .

I use the certificate store with this code:

X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);

The user that I have configured in the AppPool of the application is the same as the user where the certificate is stored.

I do not know if this can be due to some security restriction of IIS since in IIS Express it recovers it well. Any ideas? Thanks.

asked by Alberto 03.01.2019 в 12:49

0 answers