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

How to Unregister an Application for a Specific Region and Domain? #261

Open
EmilOlovsson opened this issue Dec 9, 2024 · 8 comments
Open

Comments

@EmilOlovsson
Copy link

I’m looking for a way to remove the registration of an application tied to a specific domain and region.

Example URL:
curl -H "Authorization: Bearer $TESLA_AUTH_TOKEN"
-i https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/partner_accounts/public_key?domain=MY_DOMAIN_URL

The goal is to re-register MY_DOMAIN_URL for a new application. Despite reaching out to [email protected] multiple times over the past few months, I have not received a response.

Has anyone managed to remove an application or un-register it from a domain?

@Bre77
Copy link

Bre77 commented Dec 9, 2024

Ive done this before by changing the partner domain of the old application to something else, which made my actual domain avaliable to register by the new application.

But this was back in Feburary, so hopefully it still works.

@EmilOlovsson
Copy link
Author

EmilOlovsson commented Dec 9, 2024

Ive done this before by changing the partner domain of the old application to something else, which made my actual domain avaliable to register by the new application.

But this was back in Feburary, so hopefully it still works.

I tried this and I managed to register my new application on region https://fleet-api.prd.na.vn.cloud.tesla.com/.
I generated a new EC Private key and hosted the public key at my domain. The problem now is that my I can't register my domain on region https://fleet-api.prd.eu.vn.cloud.tesla.com/ with my new public key.

{"response":null,"error":"Validation failed: Csr public key does not match the com.tesla.3p.public-key.pem","error_description":"","txid":"20c40ff04bb6c3fa6776590c0dca991f"}

@patrickdemers6
Any ideas how to fix this?

@Bre77
Copy link

Bre77 commented Dec 9, 2024

Did you change the old applicaiton registration on both NA and EU? Rememeber you have to do everything twice, once on each region.

@EmilOlovsson
Copy link
Author

EmilOlovsson commented Dec 9, 2024

Did you change the old applicaiton registration on both NA and EU? Rememeber you have to do everything twice, once on each region.

What I want to do:

  1. Application 1 - Registered to EU. I Want to register it to both EU & NA.
  2. Application 2 - Registered to NA. I want to remove this application or un-register this.

Steps taken so far:

  1. Application 2 - Registered to a new domain in NA.
  2. Application 1 - Tried to register to NA. Error! Response: {"response":null,"error":"Validation failed: Public key hash has already been taken","error_description":"","txid":"607ac89a9416885d99e8ee8269845001"}
  3. Generated a new EC public key.
  4. Application 1 - Registered to NA. Success!
  5. Application 1 - Register to EU. Error! Response: {"response":null,"error":"Validation failed: Csr public key does not match the com.tesla.3p.public-key.pem","error_description":"","txid":"20c40ff04bb6c3fa6776590c0dca991f"}

Hopefully this clarifies the steps I have taken and what issues I'm encountering.

@Bre77
Copy link

Bre77 commented Dec 9, 2024

It does, you haven't changed app 2 domain in the EU.

@EmilOlovsson
Copy link
Author

EmilOlovsson commented Dec 9, 2024

It does, you haven't changed app 2 domain in the EU.

I registered Application 2 to EU too and then tried to register Application 1 to NA (succcess) & EU (failure) using the new Public EC key.

{"response":null,"error":"Validation failed: Csr public key does not match the com.tesla.3p.public-key.pem","error_description":"","txid":"fb376e1e6b8b78bd20b8e65626dc0fb7"}

@caglarsu
Copy link

Could you solve the problem? We have same issue.

@EmilOlovsson
Copy link
Author

@caglarsu No, I haven't solved the problem yet. Let me know if you find a way.

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

3 participants