Skip to content

Commit 86f2ec8

Browse files
committed
add debug info
1 parent d7fdb1c commit 86f2ec8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/BenchmarksApps/TLS/HttpSys/Program.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@
4343

4444
if (mTlsEnabled)
4545
{
46-
ConfigureHttpSysForMutualTls();
46+
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+
}
4754
}
4855

4956
if (tlsRenegotiationEnabled)
@@ -100,6 +107,8 @@
100107

101108
void ConfigureHttpSysForMutualTls()
102109
{
110+
Console.WriteLine("Setting up mTLS for http.sys");
111+
103112
var certificate = new X509Certificate2("testCert.pfx", "testPassword", X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.Exportable);
104113
using (var store = new X509Store(StoreName.My, StoreLocation.LocalMachine))
105114
{

0 commit comments

Comments
 (0)