How to establish a secure connection on localhost using angular dart webdev?


dev_mush

I'm building a web application with angular dart and browsers like Chrome force https when accessing user location features such as geolocation. When I deploy the web app, the location api works fine because the connection is secure, but when I debug on localhost it disconnects because (I assume) the insecure session.

Is there a way to configure the http server generated by webdev to use a self signed ssl certificate somehow?

Are there any viable options?

rkunboxed

Yes, --tls-cert-chainand --tls-cert-keyonly add tags to webdev serve. I used this tutorial to set up certificates and keys : https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-minutes- 7af615770eec/ .

The following command then served the apphttps://127.0.0.1:8080

webdev serve --release --tls-cert-chain path-to-cert/server.crt --tls-cert-key path-to-key/server.key

The changes are in webdev 2.5.0.

Related


How to establish a secure connection to websocket on localhost?

impostor We have an application running on a POS terminal that should receive data from an application running on the same computer, while displaying content from a remote site loaded over HTTPS. In order to receive data from the local application we want to u

Safari cannot establish a secure connection to my localhost

username I am using maven + grizzly + jersey to start my own server. I created self signed certificate so that my server can support https. If you're curious, here's how I generated the certificate keytool -genkey -keystore ./keystore_server -alias serverKey -

Safari cannot establish a secure connection to my localhost

username I am using maven + grizzly + jersey to start my own server. I created self signed certificate so that my server can support https. If you're curious, here's how I generated the certificate keytool -genkey -keystore ./keystore_server -alias serverKey -

How to catch "Unable to establish a secure connection"

Polo Hole Set I have a website and some people with older computers or browsers are unable to establish a connection to the secure part of our website. What I want to do is catch connection errors and then reroute them to a screen explaining why this is happen

How to establish a Filezilla connection to Windows localhost?

username I have downloaded the Filezilla server and the FileZilla interface itself. There was a problem trying to connect. Can you please guide me how to connect to the FileZilla server on localhost exactly? I'm currently trying: File > Connect to Server: Serv

How to establish a Filezilla connection to Windows localhost?

username I have downloaded the Filezilla server and the FileZilla interface itself. There was a problem trying to connect. Can you please guide me how to connect to the FileZilla server on localhost exactly? I'm currently trying: File > Connect to Server: Serv

How to establish a secure connection to an EC2 instance on AWS

Ian I managed to connect the ec2 instance to my domain via route 53. However, instant messenger now has the problem of making the connection secure. I've tried to follow the step-by-step instructions I found on stack exchange, but I'm still having issues and w

How to establish a secure connection to an EC2 instance on AWS

Ian I managed to connect the ec2 instance to my domain via route 53. However, instant messenger now has the problem of making the connection secure. I've tried to follow the step-by-step instructions I found on stack exchange, but I'm still having issues and w

How to establish a secure connection to an EC2 instance on AWS

Ian I managed to connect the ec2 instance to my domain via route 53. However, instant messenger now has the problem of making the connection secure. I've tried to follow the step-by-step instructions I found on stack exchange, but I'm still having issues and w

How to establish a secure connection to an EC2 instance on AWS

Ian I managed to connect the ec2 instance to my domain via route 53. However, instant messenger now has the problem of making the connection secure. I've tried to follow the step-by-step instructions I found on stack exchange, but I'm still having issues and w

How to establish a secure connection to an EC2 instance on AWS

Ian I managed to connect the ec2 instance to my domain via route 53. However, instant messenger now has the problem of making the connection secure. I've tried to follow the step-by-step instructions I found on stack exchange, but I'm still having issues and w

How to establish a Websocket connection in Angular unit tests?

wr I'm developing an Angular (v 6.1.0) application that communicates with the backend via Websocket. So far everything is working fine except for the unit tests. I've created a mock backend to test my component, but I can't get a connection between the mock ba

How to establish a Websocket connection in Angular unit tests?

wr I'm developing an Angular (v 6.1.0) application that communicates with the backend via Websocket. So far everything is working fine except for the unit tests. I've created a mock backend to test my component, but I can't get a connection between the mock ba

How to establish a Websocket connection in Angular unit tests?

wr I'm developing an Angular (v 6.1.0) application that communicates with the backend via Websocket. So far everything is working fine except for the unit tests. I've created a mock backend to test my component, but I can't get a connection between the mock ba