Resolve Kestrel default certificate store is invalid (#11074)

This commit is contained in:
WuYafeng 2019-06-12 02:58:16 +08:00 committed by Chris Ross
parent eeaba9252f
commit 40f0c28261
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel
private static X509Certificate2 LoadFromStoreCert(CertificateConfig certInfo)
{
var subject = certInfo.Subject;
var storeName = certInfo.Store;
var storeName = string.IsNullOrEmpty(certInfo.Store) ? StoreName.My.ToString() : certInfo.Store;
var location = certInfo.Location;
var storeLocation = StoreLocation.CurrentUser;
if (!string.IsNullOrEmpty(location))