I’m trying to use the outbound registration to register an Asterisk server to an other Asterisk server, both using Asterisk 16.15.1 with pjsip module. It is working fine (registration, calls) using an UDP transport but when I change the transport to TLS and I activate client certificates, I’m not able to connect the two instances. From the documentation, I can’t find any parameter for the client certificate path in the “registration”, “endpoint” or “transport” section. I tried to create a new transport with “cert-file” pointing to the client certificate file and use this transport for the outbound registration but I have an SSL error (ee key to small).
If I use pjsua command line application with the client certificate, I am able to properly register as the other “Asterisk endpoint”.
I am wondering if it is supported in Asterisk to do outbound registration using TLS and client certificates. If it is possible, what should I do to get this working ?
Thanks for the help.