Reputation: 97
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
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