Skip to content

Commit a26492c

Browse files
authored
Update CertificateConfigLoader.cs
1 parent d12c7dd commit a26492c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Servers/Kestrel/Core/src/Internal/Certificates/CertificateConfigLoader.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ public CertificateConfigLoader(IHostEnvironment hostEnvironment, ILogger<Kestrel
4141
X509Certificate2Collection? fullChain = null;
4242
if (certInfo.Path != null)
4343
{
44-
var certificateChainPath = Path.Combine(HostEnvironment.ContentRootPath, certInfo.Path);
4544
fullChain = new X509Certificate2Collection();
46-
fullChain.ImportFromPemFile(certificateChainPath);
45+
fullChain.ImportFromPemFile(certificatePath);
4746
}
4847

4948
if (certInfo.KeyPath != null)

0 commit comments

Comments
 (0)