Table of Contents

Method UseSsl

Namespace
Sisk.Ssl
Assembly
Sisk.SslProxy.dll

UseSsl(HttpServerHostContextBuilder, short, X509Certificate?, SslProtocols, bool, object?)

Configures the HttpServerHostContext to use SslProxy with the specified parameters.

public static HttpServerHostContextBuilder UseSsl(this HttpServerHostContextBuilder builder, short sslListeningPort, X509Certificate? certificate = null, SslProtocols allowedProtocols = SslProtocols.Tls12 | SslProtocols.Tls13, bool clientCertificateRequired = false, object? proxyAuthorization = null)

Parameters

builder HttpServerHostContextBuilder

The HttpServerHostContextBuilder instance to configure.

sslListeningPort short

The port number on which the server will listen for SSL/HTTPS connections.

certificate X509Certificate

Optional. The SSL/HTTPS certificate to use for encrypting communications.

allowedProtocols SslProtocols

Optional. The SSL/HTTPS protocols allowed for the connection. Defaults to Tls12 and Tls13.

clientCertificateRequired bool

Optional. Specifies whether a client certificate is required for authentication. Defaults to false.

proxyAuthorization object

Optional. Specifies the Proxy-Authorization header value for creating an trusted gateway between the application and the proxy.

Returns

HttpServerHostContextBuilder

The configured HttpServerHostContextBuilder instance.