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

unmapped error - CERT_IN_USE, CERT_FAILED_VALIDATION #773

Closed
dovholuknf opened this issue Nov 20, 2024 · 0 comments · Fixed by #774
Closed

unmapped error - CERT_IN_USE, CERT_FAILED_VALIDATION #773

dovholuknf opened this issue Nov 20, 2024 · 0 comments · Fixed by #774
Assignees
Labels
enhancement New feature or request

Comments

@dovholuknf
Copy link
Member

dovholuknf commented Nov 20, 2024

Today I enrolled an identity with a CA using auto enrollment. I then attempted to enroll the same key/cert/jwt and the controller returned CERT_IN_USE and the C SDK subsequently returned a WTF error:

[2024-11-20T22:53:13.856Z]    WARN ziti-sdk:ziti_ctrl.c:85 code_to_error() unmapped error code: CERT_IN_USE
[2024-11-20T22:53:13.856Z]   ERROR ziti-sdk:ziti_enroll.c:434 enroll_cb() failed to enroll with controller: https://ec2-3-18-113-172.us-east-2.compute.amazonaws.com:8441/ CERT_IN_USE[The certificate supplied is already associated with another identity] reason[]
[2024-11-20T22:53:13.856Z]   ERROR ziti-edge-tunnel:process_cmd.c:47 tunnel_enroll_cb() enrollment failed: WTF: programming error(-111)

return a proper error instead of WTF. same for CERT_FAILED_VALIDATION

@dovholuknf dovholuknf added the enhancement New feature or request label Nov 20, 2024
@dovholuknf dovholuknf changed the title unmapped error - CERT_IN_USE unmapped error - CERT_IN_USE, CERT_FAILED_VALIDATION Nov 21, 2024
@dovholuknf dovholuknf self-assigned this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant