Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTPS with SSL Certificate in DART HTTP Server

Tags:

dart

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?

like image 416
William Avatar asked Jan 01 '14 15:01

William


1 Answers

Yes. Dart supports https.

See the documentation here and a test here.

Relevant lines:

HttpServer.bindSecure(HOST_NAME,
                      0,
                      backlog: 5,
                      certificateName: 'localhost_cert').then((server) {
like image 95
Florian Loitsch Avatar answered Oct 06 '22 08:10

Florian Loitsch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!