-
Notifications
You must be signed in to change notification settings - Fork 244
/
Copy pathSslCertBinding.cs
35 lines (29 loc) · 1023 Bytes
/
SslCertBinding.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
namespace HttpSys.NetSh
{
public class SslCertBinding
{
public string CertificateThumbprint { get; set; }
public string ApplicationId { get; set; }
/// <summary>
/// if mutual TLS is enabled
/// </summary>
public NetShFlag NegotiateClientCertificate { get; set; }
public NetShFlag DisableSessionIdTlsResumption { get; set; }
public NetShFlag EnableSessionTicketTlsResumption { get; set; }
public override string ToString() => $"""
Certificate thumbprint: {CertificateThumbprint}
Application ID: {ApplicationId}
Negotiate client certificate: {NegotiateClientCertificate}
Disable Session ID TLS Resumption: {DisableSessionIdTlsResumption}
Enable Session Ticket TLS Resumption: {EnableSessionTicketTlsResumption}
-----
""";
}
[Flags]
public enum NetShFlag
{
NotSet = 0,
Disabled = 1,
Enable = 2,
}
}