Sisk

Method

HttpServerHostContextBuilder.UseSsl

Namespace
Sisk.Core.Http.Hosting
Assembly
Sisk.Core.dll

UseSsl(ListeningHostSslOptions) #

Configures SSL for the listening host using the specified options.

C#
public HttpServerHostContextBuilder UseSsl(ListeningHostSslOptions sslOptions)

Parameters #

sslOptions ListeningHostSslOptions

The SSL options to apply to the listening host.

Returns #

HttpServerHostContextBuilder

The current HttpServerHostContextBuilder instance.

UseSsl(X509Certificate2) #

Configures SSL for the listening host using the specified certificate.

C#
public HttpServerHostContextBuilder UseSsl(X509Certificate2 certificate)

Parameters #

certificate X509Certificate2

The X509 certificate to use for SSL.

Returns #

HttpServerHostContextBuilder

The current HttpServerHostContextBuilder instance.

UseSsl() #

Configures SSL for the listening host using a trusted development certificate for localhost and 127.0.0.1.

C#
public HttpServerHostContextBuilder UseSsl()

Returns #

HttpServerHostContextBuilder

The current HttpServerHostContextBuilder instance.

Type to search the documentation and the API reference.