在DART HTTP Server中使用SSL和SSL证书 [英] HTTPS with SSL Certificate in DART HTTP Server

查看:185
本文介绍了在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) {

这篇关于在DART HTTP Server中使用SSL和SSL证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆