SHuoDo
SHuoDo

Reputation: 97

How to create an HttpListener using https

I am design a http server using .NET. Now, I want to make it as a https server. I basically use HttpListener to get http request from client. I know how to create a SSL certificate. But how can I configure the HttpListener to use that SSL certificate?

Upvotes: 4

Views: 14916

Answers (1)

Ceelie
Ceelie

Reputation: 41

Just use the https prefix (e.g. https://*:8443). Then bind a certificate to this port.

See answer Walter Kelt: The steps to add SSL support

Upvotes: 2

Related Questions