Hello,
I’m trying to build an App with the cht-core.
I have upload contact and app forms.
But when I try to connect to the app with a chw account, I get this error:
An SSL certificate error occurred when fetching the script.
inbox.js:3 Error bootstrapping DOMException: Failed to register a ServiceWorker for scope (‘https://34.211.232.55/ ’) with script (‘https://34.211.232.55/service-worker.js ’): An SSL certificate error occurred when fetching the script.
See below images
2 Likes
binod
January 14, 2020, 5:36am
2
Hi @diallotafsir52 , welcome to the community.
We are trying to solve the issue similar to what you are facing and it is being tracked here in the cht-core repo.
Meanwhile, you can use a workaround that we suggest for testing the app locally to get around the valid SSL requirement for service workers:
Create a ngrok account at https://ngrok.com/
Follow instructions on downloading and linking your computer (server) to your ngrok account.
Start ngrok
by executing: ./ngrok http 443
from your server
Then you should be able to access the app from the https://
URL provided by ngrok
and use your CHW account to log in.
If the above method with ngrok
does not work, please try a similar service serveo
following this guide .
Thanks
3 Likes
Tamor
January 16, 2020, 5:04pm
3
Had the same issue and ngrok works. Thanks!
1 Like
Thank you. Ngrok works for me.
1 Like
Try using Mozilla Firefox. The chrome related SSL Enforcement for self-signed certificates isn’t enforced on Mozilla Firefox.
2 Likes