Method UseSsl
UseSsl(HttpServerHostContextBuilder, short, X509Certificate?, SslProtocols, bool, object?, bool)
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, bool onlyUseIPv4 = false)
Parameters
builderHttpServerHostContextBuilderThe HttpServerHostContextBuilder instance to configure.
sslListeningPortshortThe port number on which the server will listen for SSL/HTTPS connections.
certificateX509CertificateOptional. The SSL/HTTPS certificate to use for encrypting communications.
allowedProtocolsSslProtocolsOptional. The SSL/HTTPS protocols allowed for the connection. Defaults to Tls12 and Tls13.
clientCertificateRequiredboolOptional. Specifies whether a client certificate is required for authentication. Defaults to
false.proxyAuthorizationobjectOptional. Specifies the Proxy-Authorization header value for creating an trusted gateway between the application and the proxy.
onlyUseIPv4boolOptional. Specifies whether DNS Resolve may also use IPv6 addresses or should only use IPv4 addresses
Returns
- HttpServerHostContextBuilder
The configured HttpServerHostContextBuilder instance.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語