Hi Ian, I am able to create cert.pem and key.pem files using mkcert. I used this command for domain and wildcard: C:\Projects\SinchDemoApp\rtc-reference-applications\javascript> mkcert -key-file key.pem -cert-file cert.pem mysinchdemoapp.com *.mysinchdemoapp.com
Created a new certificate valid for the following names 📜
- "mysinchdemoapp.com"
- "*.mysinchdemoapp.com"
Reminder: X.509 wildcards only go one level deep, so this won't match a.b.mysinchdemoapp.com ℹ️
The certificate is at "cert.pem" and the key at "key.pem" ✅ After that I am running my server with below command : npx http-server -S -C cert.pem -K key.pem But it says my server is up at: Starting up http-server, serving ./ through https
http-server version: 14.1.1
http-server settings:
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none
Available on:
https://192.168.1.7:8080
https://127.0.0.1:8080
Hit CTRL-C to stop the server After that If I run my app at : https://192.168.1.7:8080/ It is crashing after I enter the Application key and secret and userID : I am getting these errors : An SSL certificate error occurred when fetching the script.
index.html:1 Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('https://127.0.0.1:8080/voicecall/') with script ('https://127.0.0.1:8080/voicecall/sw.js'): An SSL certificate error occurred when fetching the script.
sinch-rtc-min.js:2 POST https://ocra.api.sinch.com/ocra/v2/applications/dc53b66d-edbb-45d1-a43b-a59831a1a500/instances 401
(anonymous) @ sinch-rtc-min.js:2
o @ sinch-rtc-min.js:2
Promise.then (async)
u @ sinch-rtc-min.js:2
o @ sinch-rtc-min.js:2
Promise.then (async)
u @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
e @ sinch-rtc-min.js:2
fetchApi @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
e @ sinch-rtc-min.js:2
request @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
xe @ sinch-rtc-min.js:2
createInstanceRaw @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
xe @ sinch-rtc-min.js:2
createInstance @ sinch-rtc-min.js:2
createInstance @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
dr @ sinch-rtc-min.js:2
register @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
dr @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
Promise.then (async)
onCredentialsRequired @ VoiceCallSinchClientWrapper.js:46
listen @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
Et.onEvent @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
dr @ sinch-rtc-min.js:2
createInstance @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
dr @ sinch-rtc-min.js:2
start @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
Lr @ sinch-rtc-min.js:2
start @ sinch-rtc-min.js:2
VoiceCallSinchClientWrapper @ VoiceCallSinchClientWrapper.js:20
(anonymous) @ index.js:3
sinch-rtc-min.js:2 Response {type: 'cors', url: 'https://ocra.api.sinch.com/ocra/v2/applications/dc53b66d-edbb-45d1-a43b-a59831a1a500/instances', redirected: false, status: 401, ok: false, …}
(anonymous) @ sinch-rtc-min.js:2
a @ sinch-rtc-min.js:2
Promise.then (async)
u @ sinch-rtc-min.js:2
(anonymous) @ sinch-rtc-min.js:2
Lr @ sinch-rtc-min.js:2
start @ sinch-rtc-min.js:2
VoiceCallSinchClientWrapper @ VoiceCallSinchClientWrapper.js:20
(anonymous) @ index.js:3
VoiceCallSinchClientWrapper.js:54 Sinch - Start client failed
VoiceCallSinchClientWrapper.js:55 _r {message: 'Unable to create instance!', code: 500, domain: 2} I have followed all the instructions which you provided. Kindly guide me how to proceed here ?
... View more