зеркало из https://github.com/Azure/Sia-Root.git
fixed loading cert issue that kept ticket data out of prod (#16)
This commit is contained in:
Родитель
dc6ce84cca
Коммит
e1972b0c0f
|
@ -33,7 +33,7 @@ namespace Sia.Shared.Authentication
|
|||
using (X509Store store = new X509Store("My", location))
|
||||
{
|
||||
store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
|
||||
X509Certificate2Collection certificates = store.Certificates.Find(X509FindType.FindByThumbprint, _certThumbprint, false);
|
||||
X509Certificate2Collection certificates = store.Certificates.Find(X509FindType.FindByThumbprint, _certThumbprint, validOnly: false);
|
||||
if (certificates.Count > 0)
|
||||
{
|
||||
return Task.FromResult(certificates[0]);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<Version>1.1.25-alpha</Version>
|
||||
<Version>1.1.21-alpha</Version>
|
||||
<PackageId>Microsoft.Sia.Shared</PackageId>
|
||||
<Authors>pdimit, magpint, jache, chtownes</Authors>
|
||||
<Company>Microsoft</Company>
|
||||
|
|
Загрузка…
Ссылка в новой задаче