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

certificate cannot be renewed, error message: "key does not match certificate" #58

Open
mbu147 opened this issue Mar 19, 2024 · 2 comments

Comments

@mbu147
Copy link

mbu147 commented Mar 19, 2024

Hello,

we run an OpenShift cluster in Azure (ARO) with openshift-routes and cert-manager, both deployed as Helm charts via ArgoCD.
cert-manager: v1.14.4
openshift-routes: v0.5.0

When one of our certificates needs to be renewed, it fails with the message "Key does not match certificate".
To work around this problem, we can recreate the entire route from scratch without the old certificate.

cert-manager-openshift-routes/route/sync "msg"="failed to populate route certificate" "error"="key does not match certificate (route: <namespace>/<route name>)" "resourceVersion"="1069859259" "route"={"Namespace":"<namespace>","Name":"<route name>"}

Does anyone already know this error and know how we can fix it?

Thanks!

@mbu147 mbu147 changed the title cannot renew certificate, error message: "key does not match certificate" certificate cannot be renewed, error message: "key does not match certificate" Mar 19, 2024
@of-vincentvandam
Copy link

We had the same problem, and ended up removing the orders and certificaterequests resources for these routes. Looking at the code, maybe just removing the cert-manager.io/next-private-key annotation from the route would have worked as well?

@ctml91
Copy link

ctml91 commented Mar 28, 2024

Experienced the same problem.

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