Error when enrolling public key: "Cant share car" #101
-
Hi I have now tried for several days to get this to work, and I have managed to get to the point where I try to "Enroll public key in your vehicle" When I press this and the Tesla App launches I get an error message "Unable to share Vehicle I use duckdns and NGINX and I have followed the guide as far as I can tell, but I must have done something wrong. The log from duckdns
The log from NGINX
Log from tesla-http-proxy-addon
If I try to open the page
in Chrome, I get a big fat warning that it is not safe, and if I proceed I get the "502 Bad Gateway" Please, can someone tell me what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 4 replies
-
I see there is a simillar problem here : Error when enrolling vehicle #32 Unfortunately this does not solve the problem for me. My problem is something else. I now see these logs in the addon log
These continue for 15 minutes or so, before the addon turns itself off In the NGINX I sometimes see logs like this
|
Beta Was this translation helpful? Give feedback.
-
I have the same problem, I can not enroll the public key in my vehicle... very bad documentation... maybe anyone can make a detailed video with a working workflow or describe every step...
I think on the callback site should/must exist a certificate or file, mustn't it? |
Beta Was this translation helpful? Give feedback.
-
I have got a similar issue. I'm able to get https://xxxxxxxxx.duckdns.org/.well-known/appspecific/com.tesla.3p.public-key.pem.
curl failed to verify the legitimacy of the server and therefore could not My big problem is that I always get the "Unable to share Vehicle At the same time on the log I can see that: [13:31:30] webui:WARNING: Obtained refresh token: EU_e4b78f264e1dfaaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx What is wrong? I have also read this post teslamotors/vehicle-command#203 but I am owner of my car, not leasing. |
Beta Was this translation helpful? Give feedback.
-
Looks like the same issue I had. Not sure what my problem was, but I saw that duckdns failed on dns challenge on the new domain. So I created a new, and then it passed.
Hent BlueMail til Android
Den 9. jun. 2024 13.35, fra 13.35, aalllop ***@***.***> skrev:
…I have got a similar issue. I'm able to get
https://xxxxxxxxx.duckdns.org/.well-known/appspecific/com.tesla.3p.public-key.pem.
I have configured Tesla HTTP Proxy with may access code and secret
using my duckdns domain. When I start Tesla HTTP Proxy I get this
warnings on log:
[13:17:22] webui:INFO: Starting Flask server for Web UI...
[13:17:22] werkzeug:INFO: WARNING: This is a development server. Do not
use it in a production deployment. Use a production WSGI server
instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:8099
* Running on http://172.30.33.12:8099
[13:17:22] werkzeug:INFO: Press CTRL+C to quit
[13:17:24] INFO: Found existing keypair
[13:17:24] INFO: Testing public key...
curl: (28) Resolving timed out after 2001 milliseconds
Warning: Problem : timeout. Will retry in 1 seconds. 14 retries left.
curl: (60) SSL certificate problem: self-signed certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could
not
establish a secure connection to it. To learn more about this situation
and
how to fix it, please visit the web page mentioned above.
Warning: Problem (retrying all errors). Will retry in 2 seconds. 13
retries
Warning: left.
curl: (60) SSL certificate problem: self-signed certificate
More details here: https://curl.se/docs/sslcerts.html
My big problem is that I always get the "Unable to share Vehicle
This third-party isn't registered with Tesla. We can't grant them
access at this time" when I select "Enroll public key in your vehicle".
At the same time on the log I can see that:
[13:31:30] webui:WARNING: Obtained refresh token:
EU_e4b78f264e1dfaaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
[13:31:30] werkzeug:INFO: 172.30.32.2 - - [09/Jun/2024 13:31:30] "GET
/callback?callback_url=https://XXXXXXXX.duckdns.org/callback?code%3DEU_0420584cc6ced0620d42ee24fd05827e5e6603455ef9e238989bb1a650f6%26state%3D6bcdedec4d%26issuer%3Dhttps%253A%252F%252Fauth.tesla.com%252Foauth2%252Fv3
HTTP/1.1" 200 -
What is wrong?
I have also read this post
teslamotors/vehicle-command#203 but I am
owner of my car, not leasing.
--
Reply to this email directly or view it on GitHub:
#101 (comment)
You are receiving this because you authored the thread.
Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Have you créated another domain only for this plugging? With his proper certificate? I have another question. I have nginx ssl proxy running on 443 port so I could not put tesla proxy on the same port . What port have you used for tesla proxy? |
Beta Was this translation helpful? Give feedback.
-
I only use 443.
I access my HA installation on myHaDomain.duckdns.org and use anotherDomain.duckdns.org for the http proxy.
Hent BlueMail til Android
Den 9. jun. 2024 14.24, fra 14.24, aalllop ***@***.***> skrev:
…Have you créated another domain only for this plugging? With his
proper certificate? I have another question. I have nginx ssl proxy
running on 443 port so I could not put tesla proxy on the same port .
What port have you used for tesla proxy?
--
Reply to this email directly or view it on GitHub:
#101 (comment)
You are receiving this because you authored the thread.
Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have created another dns url but no luck |
Beta Was this translation helpful? Give feedback.
-
I have found the problem but not the solution. My ha is resolving de my_teala.fuckdns.org to the Internet ip so is not able to get de certificate. I have configured ha dns to the local dns installed on dnsmasq but is resolving dns from internet. Any idea ? |
Beta Was this translation helpful? Give feedback.
-
I have configured on HA the dns to a router on my LAN. On the router I have defined my_tesla duckdns.org to the ip of HA server in my lan and now the tesla http proxy is able to get and register the token on tesla, and I can configure tesla integration |
Beta Was this translation helpful? Give feedback.
I finally managed to get the addon to work, and get my car to accept the key.
I had made several mistakes in my first attempts so I made a fresh start, where I deleted the duckdns, NGINX and tesla http proxy addons, and deleted /ssl folder and the /share folder
Then I created a new account at developer.tesla.com and created a new domain at duckdns.
Made sure that the new domain had propagated using dns checker.
Then I installed duckdns and NGINX, and verified that duckdns could pass the dns challange (this failed previously, but after reinstall, it passed)
Then I installed Tesla http proxy addon and configured it excactly as described in docs and wiki page Setup-guide-using-existing-DuckD…