We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7fdb1c commit 86f2ec8Copy full SHA for 86f2ec8
src/BenchmarksApps/TLS/HttpSys/Program.cs
@@ -43,7 +43,14 @@
43
44
if (mTlsEnabled)
45
{
46
- ConfigureHttpSysForMutualTls();
+ try
47
+ {
48
+ ConfigureHttpSysForMutualTls();
49
+ }
50
+ catch (Exception ex)
51
52
+ throw new Exception($"Http.Sys configuration for mTLS failed. Current dir: {Directory.GetCurrentDirectory()}", innerException: ex);
53
54
}
55
56
if (tlsRenegotiationEnabled)
@@ -100,6 +107,8 @@
100
107
101
108
void ConfigureHttpSysForMutualTls()
102
109
110
+ Console.WriteLine("Setting up mTLS for http.sys");
111
+
103
112
var certificate = new X509Certificate2("testCert.pfx", "testPassword", X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.Exportable);
104
113
using (var store = new X509Store(StoreName.My, StoreLocation.LocalMachine))
105
114
0 commit comments