teslamotors / fleet-telemetry

Apache License 2.0
693 stars 83 forks source link

The fleet telemetry log shows the following, may I ask which certificate is incorrect? #225

Open lizhanghua945 opened 1 month ago

lizhanghua945 commented 1 month ago

{"activity":true,"context":"fleet-telemetry","level":"info","msg":"2024/10/17 07:04:42 http: TLS handshake error from 47.245.61.215:33972: tls: client didn't provide a certificate\n","time":"2024-10-17T07:04:42Z"}

lizhanghua945 commented 1 month ago

"tls": { "server_cert": "/etc/certs/server/telemetry.test.etc.hrhaoche.com_public.crt", "server_key": "/etc/certs/server/telemetry.test.etc.hrhaoche.com.key" }, "ca": "/etc/certs/server/0001_chain.pem"

lizhanghua945 commented 1 month ago

{"activity":true,"context":"fleet-telemetry","level":"info","msg":"2024/10/17 07:28:04 http: TLS handshake error from 112.96.234.94:42603: remote error: tls: bad certificate\n","time":"2024-10-17T07:28:04Z"} {"activity":true,"context":"fleet-telemetry","level":"info","msg":"2024/10/17 07:28:32 http: TLS handshake error from 112.96.234.94:63486: remote error: tls: bad certificate\n","time":"2024-10-17T07:28:32Z"} {"activity":true,"context":"fleet-telemetry","level":"info","msg":"2024/10/17 07:28:38 http: TLS handshake error from 185.139.228.190:36844: tls: client didn't provide a certificate\n","time":"2024-10-17T07:28:38Z"}

lizhanghua945 commented 1 month ago

2024-10-17 14:51:55,923 I [TeslaHttpUtil ] -353- param: {"config":{"hostname":"telemetry.test.etc.hrhaoche.com","port":443,"fields":{"VehicleSpeed":{"interval_seconds":60}},"ca":"-----BEGIN CERTIFICATE-----\nMK9T7jD91xiFCC3ho9ijamUShzl5J2uul4A\nIw==\n-----END CERTIFICATE-----\n"},"vins":["LRW3E7ET3RC217335"]} 2024-10-17 14:51:55,930 I [TeslaHttpUtil ] -357- httpPost: POST https://172.17.239.105/api/1/vehicles/fleet_telemetry_config HTTP/1.1 2024-10-17 14:51:56,532 I [TeslaHttpUtil ] -361- Response body: {"response":{"updated_vehicles":1}}

lizhanghua945 commented 1 month ago

[root@iZ6we1ixwfxc3flb8l3stwZ server]# openssl rsa -in /etc/certs/server/telemetry.test.etc.hrhaoche.com.key -pubout -outform pem | openssl pkey -pubin -pubout -outform pem > private.pub writing RSA key [root@iZ6we1ixwfxc3flb8l3stwZ server]# [root@iZ6we1ixwfxc3flb8l3stwZ server]# openssl x509 -in /etc/certs/server/telemetry.test.etc.hrhaoche.com_public.crt -pubkey -noout -outform pem > certificate.pub [root@iZ6we1ixwfxc3flb8l3stwZ server]# diff private.pub certificate.pub [root@iZ6we1ixwfxc3flb8l3stwZ server]#

lizhanghua945 commented 1 month ago

https://dev.to/patrickdemers6/fleet-telemetry-streaming-data-from-your-tesla-2i97中 { "domain": "your-domain.com", "csr": "-----BEGIN CERTIFICATE REQUEST-----\ncert_data\n-----END CERTIFICATE REQUEST-----\n }No corresponding interface document found