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 ?
But this error is normal I think. I tried everything to be able to do an outbound registration with a client certificate but I found nowhere to set the client certificate path. As I said, I tried to create a transport by giving the client certificate path inside the “cert_file” transport parameter. Normally this should be the server certificate and as the client certificate does not have any key I wasn’t surprised by this error.
For reference, this is what I tried as a transport for the outbound registration that gave me the error above:
The client certificate is correct, I was able to connect properly register to the Asterisk server using the pjsua command line tool with the client certificate.
As I did not find anywhere to set the client certificate path for outbound registration . So, I was wondering:
Did you use -b 2048, as described in the thread I referenced? The messages show that it did find the certificate files, but rejected their contents as not sufficiently secure. I believe you are continuing to pursue the wrong problem.
When I said cut and paste, I meant cut and paste as text, not as images; it isn’t possible to search images for text.
I’m sorry, I don’t have access to the machine running the docker image until next Monday, I only have a screenshot on my laptop. I can later repost the error as text.
I’d bee surprised if terminal emulator doesn’t allow you to copy text from the screen. However, I don’t think it is going to change things.
The facts remain that a certificate file is being found and its content rejected.
I’m confused by the expiry date, as the script seems to use a 365 day expiry, and this is hard coded. It looks to me as though there may be no expiry specified.
Although I don’t know why it would cause the certificate to be rejected, the naming of this doesn’t look right. as I understand it, this should be the certificate that matches the private key file.
Client is often misused on this forum, but I suspect this is the certificate for the peer. That is verified by checking its certificate for a signature traceable to an entry in the ca list file, not by matching the exact certificate.
(Asterisk is the client and the peer the server, when Asterisk is starting an outbound call leg.)