bartbutenaers / node-red-contrib-ui-web-push

A Node-RED widget node to send web push notifications via the dashboard
Apache License 2.0
16 stars 5 forks source link

Adding Self Signed certificates to get rid of unsafe browsing warnings. #8

Open vicvega83 opened 3 years ago

vicvega83 commented 3 years ago

Hi, I've been testing the push notification system on my Android 10 phone, and I can confirm that Service Worker doesn't work on Chrome. It works on Firefox, but there is every single time, the unsafe browsing warning, which is annoying, mostly because when you tap on a push notification, firefox fires up, you get redirected to your dashboard url, but it's unfortunately a blank page, until you manually reload it, and get past the unsafe browsing prompt once again.

I tried installing the certificates I created (with TotallyInformation script ) on my android phone (simultaneously also attempting on my Windows10, systewide, and on Firefox / Chrome) But Installing them doesn't seem to get rid of the warning. I followed these steps and I can see It's correctly installed as a Root Certificate Authority. Will post my progress as soon as I have some time to dig into it.

bartbutenaers commented 3 years ago

Normally this does NOT work with self signed certificated!!

I install automatically a Letsencrypt cerificate (via DuckDns) by my node-red-contrib-letsencrypt node, and that works fine.

This was the main driver for me - at the time being - to develop that node...

vicvega83 commented 3 years ago

I got it all wrong in the first place :) So after setting up DuckDns certbot, I can confirm it works perfectly, both on Firefox and Chrome on Windows and Android 10 ! I'll dig into your letsencrypt node, as I'm learning it needs to be renewed every 90 days. Thanks!

bartbutenaers commented 3 years ago

I wrote the LetsEncrypt node after I read an arricle about Node-RED and Certbot. I wanted to have a 100% Node-RED solution, without having to install Certbot...