Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 .NET 设计一个 http 服务器。现在,我想把它变成一个 https 服务器。我基本上使用 HttpListener 从客户端获取 http 请求。我知道如何创建 SSL 证书。但是如何配置 HttpListener 以使用该 SSL 证书?
只需使用 https 前缀(例如 https://*:8443)。然后将证书绑定到此端口。
查看答案 Walter Kelt: 添加 SSL 支持的步骤