在DART HTTP Server中使用SSL和SSL证书

问题描述:

Dart HTTP Server是否支持HTTPS?如果是,您如何指定证书?如果没有,是否有任何替代方案,例如社区创建的包?

Does the Dart HTTP Server support HTTPS? If so, how do you specify the certificate? If not, are there any alternatives such as community created packages?

Dart支持https。

Yes. Dart supports https.

请参阅文档此处和测试此处

相关行:

HttpServer.bindSecure(HOST_NAME,
                      0,
                      backlog: 5,
                      certificateName: 'localhost_cert').then((server) {