I have a web application Identity Serverhosted on Azure. It has a file .pfxin the root directory for signing it. The problem is that when it was recently published, it works fine, but after a while it starts throwingCryptographicException: Keyset does not exist.
Identity Server
.pfx
CryptographicException: Keyset does not exist.
Based on CryptographicException KeySet does not exist. I would suggest that this is a problem with access to the file, but why access to the file will be spoiled from a sudden lazurine.
, . - Azure Portal.
- .
X509Certificate2 Certificate = null; var certStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); certStore.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly); var certCollection = certStore.Certificates.Find(X509FindType.FindByThumbprint,"CERTIFICATE_THUMBPRINT_HERE",false); Certificate = certCollection[0];
. . services.AddDataProtection() Azure App Service %HOME%\ASP.NET\DataProtection-keys. , , , . . , , , CryptographicException: Keyset does not exist, .
services.AddDataProtection()
%HOME%\ASP.NET\DataProtection-keys
CryptographicException: Keyset does not exist
, . Redis Azure Blob Storage .
, , .
, .
Source: https://habr.com/ru/post/1654712/More articles:Authentication via api key in chrome api web store - apiloading table with interactive row event and how to exclude column or cell - jqueryIs there a way to create an object using variables and ignore undefined variables? - javascriptДжексон - общий метод getValue - javaGetting time-based data from Kafka - apache-kafkaArgument for O (1) Complicated Heap Insertion Complexity - heapCryptographicException KeySet does not exist - azureThe error cannot open the file 'kernel32.lib' - visual-c ++Unable to compile 64-bit Visual Studio 2010 projects - c ++How can I tell you which licenses I use in banks? - javaAll Articles