Commit 0f19fea8 authored by justcoding121's avatar justcoding121

Update DefaultCertificateDiskCache.cs

parent 380cd397
...@@ -59,6 +59,12 @@ namespace Titanium.Web.Proxy.Network ...@@ -59,6 +59,12 @@ namespace Titanium.Web.Proxy.Network
private X509Certificate2 loadCertificate(string path, string password, X509KeyStorageFlags storageFlags) private X509Certificate2 loadCertificate(string path, string password, X509KeyStorageFlags storageFlags)
{ {
byte[] exported; byte[] exported;
if (!File.Exists(path))
{
return null;
}
try try
{ {
exported = File.ReadAllBytes(path); exported = File.ReadAllBytes(path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment