Closed MayamaTakeshi closed 1 month ago
Actually, I think the problem is that I need to set the ssl files. The client might not need such files but the server needs them. Let's check pjsua code following: https://docs.pjsip.org/en/latest/specific-guides/security/ssl.html#running-pjsua-as-tls-client
And if someone asks for support of mutual authentication we might need to provide different certs for each side:
The certificate is supposed to uniquely identify the peer. A shared KeyStore cannot accomplish that. It also violates private key privacy
Lets do this before #51
Indeed issue was solved after setting tls cert/key files. I have created samples/tls.js. It shows that we can use the same tls files at both sides of the call.
If I am not mistaken we can use TLS transport against SIP servers but we cannot create two TLS transports and make a call between them as we get:
Googling i found a hint that the 'no shared cipher' might be misleading:
https://community.asterisk.org/t/pjsip-tls-trouble/73813/4
So let's try to solve this and add a TLS sample.