tomasz-grobelny / AACS

Android Auto Server encapsulates communication with modern car infotainment system
GNU General Public License v3.0
225 stars 29 forks source link

SSL error connecting to vehicle #28

Open kevinlieb opened 1 year ago

kevinlieb commented 1 year ago

On connection to my car I am seeing: ep0 event 0 ep0 event 2 got version request version negotiation ok auth complete Error: SSL_read failed: -1 2 2 2 Tue Sep 27 19:57:39 PDT 2022

This is in Server.log

This is in connecting to my Kia. The ODroid N2 I am testing this with has connected to my Crankshaft setup, sort of, a few times before.

Do I need to regen the SSL keys for new cars or something?

tomasz-grobelny commented 1 year ago

The current keys are valid only until 24 August 2022 and I think this is the most probable reason you are getting this error. The keys need to be dumped from fresh android auto process on rooted device using pmdump.

gamelaster commented 1 year ago

@tomasz-grobelny haha, doing process memory dump might be easier as my method (I was dumping it from the code :D )

sploders101 commented 1 year ago

I can't find the keys to save my life. There is no PEM-formatted string in the pmdump, and I've even searched for commonalities between the keys I found in the git history, looking for the binary, to no avail. I'm getting this same error; does anyone have a concrete explanation of how I could get these keys?

khimaros commented 2 months ago

see also https://github.com/tomasz-grobelny/AACS/issues/15#issuecomment-1287651274