Closed quasd closed 4 years ago
The cypher seems to be supported so perhaps @kYroL01 can provide a hint for investigation
Sorry, today github sucks! I'll check asap
@quasd Yes, i can confirm that the cipher suites in the pcap should be supported. Can u sent me orginal dump + key at mcampus@qxip.net and I'll try to check the problem better ? Thank you
@kYroL01 dump + key sent to the mail mentioned above. Thank you for the help.
@kYroL01 this might have been a error on my side.
I went and assumed that Ubuntu 16.04 ships with libgcrypt-1.8 when that is not the case...
I tried compiling libgpg-error and libgcrypt from source, which resulted in captagent segfaulting, when trying to capture device registering. (dump should be same/similar as above)
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17750
Segmentation fault (core dumped)
I am currently upgrading the test server to 18.04 to rule out problems with my manually compiled libraries.
( I have experienced this same behaviour on my personal computer running Arch that currently ships with 1.8.3, so there does seem to be some problem even though it's slightly different from the problem I reported initially )
pacman -Q | grep libgcrypt
lib32-libgcrypt 1.8.3-1
libgcrypt 1.8.3-1
@kYroL01 spoke too soon, even on 18.04 with libgcrypt 1.8.1 from official repositories it doesn't work. The errors are slightly different though.
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
[DEBUG] protocol_tcp.c:271 TLS packet found
[DEBUG] protocol_tcp.c:202 KEY in proto_tcp = 17349
This is not a valid TLS/SSL packet
[ERR] protocol_tcp.c:253 INVALID TLS/SSL packet
[ERR] protocol_sip.c:132 Error parsing TLS!!!!
at least it doesn't segfault anymore
@quasd Mail received, thanks! So, basically, it's a good news no Segfault anymore. Maybe something change from the cipher suite. I'll try to figure out if something is changed.
@quasd Can you sent me by mail also the cert.pem
you created ?
Thanks
@kYroL01 mail sent.
openssl pkey -in private.key -pubout -outform pem | sha256sum
b384b8ea960f629176ceec3a8974c2f0caa2c2c429b8ac810773a7343067fcbe -
openssl x509 -in private.pem -pubkey -noout -outform pem | sha256sum
b384b8ea960f629176ceec3a8974c2f0caa2c2c429b8ac810773a7343067fcbe -
As I privately answer to @quasd (but the answer should probably useful for others), the problem is the size of the private key created.
Captagent TLS support 2048
bit keys, but the one used here is 4096
.
From my side I try to understand how (and if) I can put the 4096 bit support.
Need to update the Wiki to specify this limitation for now.
Hello I have been trying to get TLS SIP workig for a while now.
I have been gettin mixed results from segfaults to INVALID TLS/SSL packets.
I will talk regarding the INVALID TLS/SSL packets since it's happening on Ubuntu Ubuntu 16.04 LTS which is closest to Debian (that is used in wiki)
The error I am getting is below
It repeats for the count of the packets.
Here is scrambled tcpdump. (I can share orginal dump + key by mail if necessary)
yealink.pcap.zip
Setings I think are releveant can be found below. If you need anything else please let me know.
I can't figure out what would be causing this. Any help would be awesome.
Asterisk
/usr/local/captagent/etc/captagent/protocol_tcp.xml
/usr/local/captagent/etc/captagent/socket_pcap.xml
/usr/local/captagent/etc/captagent/captagent.xml
/usr/local/captagent/etc/captagent/captureplans/tcp_capture_plan.cfg
/usr/src/captagent/captagent/conf/private.key (self signed just for this purpose)