Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lizhanghua945 opened this issue Oct 17, 2024 · 5 comments

Comments

@lizhanghua945
Copy link

{"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
Copy link
Author

"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
Copy link
Author

{"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
Copy link
Author

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
Copy link
Author

[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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant