lart2150 / kmttg

Java application to interact with TiVo DVRs
GNU General Public License v3.0
31 stars 4 forks source link

socket write error #33

Open hrsimon opened 1 day ago

hrsimon commented 1 day ago

Kinda lost. Here's the error I get: RemoteInit - (IP=xxx.xxx.x.x, port=xxxx): Connection reset by peer: socket write error

I used telnet to connect to the tivo and confirmed that it connects. No matter what I try it seems to not be able to read the tivo to create the table. I turned the local firewall(s) off just in case and still no go. Any help would be very much appreciated.

lart2150 commented 22 hours ago

What happens if you run the following command with your ip and port? openssl s_client 1.2.3.4:1234

I would expect it to start with something like

Can't use SSL_get_servername
depth=2 C = US, ST = California, L = Alviso, O = TiVo Inc., OU = IT, CN = TiVo Inc. CA, emailAddress = certs@tivo.com
verify error:num=19:self-signed certificate in certificate chain
verify return:1
depth=1 C = US, ST = California, L = Alviso, O = TiVo Inc, OU = IT, CN = TiVo Device Sub CA, emailAddress = certs@tivo.com
verify error:num=68:CA signature digest algorithm too weak
verify return:1
depth=2 C = US, ST = California, L = Alviso, O = TiVo Inc., OU = IT, CN = TiVo Inc. CA, emailAddress = certs@tivo.com
verify return:1
depth=1 C = US, ST = California, L = Alviso, O = TiVo Inc, OU = IT, CN = TiVo Device Sub CA, emailAddress = certs@tivo.com
verify return:1
depth=0 CN = 849-0001-1234-ABCD, O = TiVo Inc., OU = IT, L = Alviso, ST = CA, C = US
verify return:1
40C7B98BBA7F0000:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../ssl/record/rec_layer_s3.c:1605:SSL alert number 40
---
Certificate chain
 0 s:CN = 849-0001-1234-ABCD, O = TiVo Inc., OU = IT, L = Alviso, ST = CA, C = US
   i:C = US, ST = California, L = Alviso, O = TiVo Inc, OU = IT, CN = TiVo Device Sub CA, emailAddress = certs@tivo.com
   a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
   v:NotBefore: Dec 18 14:53:42 2023 GMT; NotAfter: Dec 15 14:53:42 2033 GMT
 1 s:C = US, ST = California, L = Alviso, O = TiVo Inc., OU = IT, CN = TiVo Device Sub CA, emailAddress = cert@tivo.com
   i:C = US, ST = California, L = Alviso, O = TiVo Inc., OU = IT, CN = TiVo Inc. CA, emailAddress = certs@tivo.com
   a:PKEY: rsaEncryption, 1024 (bit); sigalg: RSA-MD5
   v:NotBefore: Feb 24 00:17:38 2005 GMT; NotAfter: Feb 22 00:17:38 2015 GMT
 2 s:C = US, ST = California, L = Alviso, O = TiVo Inc, OU = IT, CN = TiVo Device Sub CA, emailAddress = certs@tivo.com
   i:C = US, ST = California, L = Alviso, O = TiVo Inc., OU = IT, CN = TiVo Inc. CA, emailAddress = certs@tivo.com
   a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA1
   v:NotBefore: Jan 17 01:39:07 2013 GMT; NotAfter: Jan 12 01:39:07 2036 GMT
 3 s:C = US, ST = California, L = Alviso, O = TiVo Inc., OU = IT, CN = TiVo Inc. CA, emailAddress = certs@tivo.com
   i:C = US, ST = California, L = Alviso, O = TiVo Inc., OU = IT, CN = TiVo Inc. CA, emailAddress = certs@tivo.com
   a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA1
   v:NotBefore: Jul 12 20:53:18 2010 GMT; NotAfter: Jul  6 20:53:18 2035 GMT
---