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

Commit cd90c5b

Browse files
committed
#468 switch bouncy castle as default until fix is found
1 parent 8e279cb commit cd90c5b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Titanium.Web.Proxy/Network/CertificateManager.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ namespace Titanium.Web.Proxy.Network
1919
public enum CertificateEngine
2020
{
2121
/// <summary>
22-
/// Uses Windows Certification Generation API.
22+
/// Uses BouncyCastle 3rd party library.
23+
/// Default.
2324
/// </summary>
24-
DefaultWindows = 0,
25+
BouncyCastle = 0,
2526

2627
/// <summary>
27-
/// Uses BouncyCastle 3rd party library.
28+
/// Uses Windows Certification Generation API.
29+
/// Bug #468 Reported.
2830
/// </summary>
29-
BouncyCastle = 1
31+
DefaultWindows = 1
32+
3033
}
3134

3235
/// <summary>
@@ -93,7 +96,7 @@ internal CertificateManager(string rootCertificateName, string rootCertificateIs
9396
RootCertificateIssuerName = rootCertificateIssuerName;
9497
}
9598

96-
CertificateEngine = RunTime.IsWindows ? CertificateEngine.DefaultWindows : CertificateEngine.BouncyCastle;
99+
CertificateEngine = CertificateEngine.BouncyCastle;
97100

98101
certificateCache = new ConcurrentDictionary<string, CachedCertificate>();
99102
pendingCertificateCreationTasks = new ConcurrentDictionary<string, Task<X509Certificate2>>();

0 commit comments

Comments
 (0)