Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit 0f19fea

Browse files
committed
Update DefaultCertificateDiskCache.cs
1 parent 380cd39 commit 0f19fea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Titanium.Web.Proxy/Network/DefaultCertificateDiskCache.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ public void Clear()
5959
private X509Certificate2 loadCertificate(string path, string password, X509KeyStorageFlags storageFlags)
6060
{
6161
byte[] exported;
62+
63+
if (!File.Exists(path))
64+
{
65+
return null;
66+
}
67+
6268
try
6369
{
6470
exported = File.ReadAllBytes(path);

0 commit comments

Comments
 (0)