Webhook tls error on k8

Hi

I am getting the below error when I configure tls cert for the webhook. why is this happening.

2022-07-31T22:52:40.845Z [WARN]  handler.certwatcher: Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...
2022-07-31T22:52:40.845Z [INFO]  handler.certwatcher: Webhooks changed. Updating certs...
2022-07-31T22:52:40.845Z [WARN]  handler.certwatcher: Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...
2022-07-31T22:52:40.994Z [INFO]  handler.certwatcher: Updated certificate bundle received. Updating certs...

Sounds like the cert tool you’re using doesn’t have access to the PEM files. This is more of a k8s question, and not related to Vault.

Is the below output a problem? because my request to inject secrets are not getting to the vault-agent-injector. This is on GKE

2022-08-01T09:53:58.174Z [INFO]  handler.certwatcher: Updated certificate bundle received. Updating certs...
2022-08-01T09:53:58.182Z [INFO]  handler.certwatcher: Webhooks changed. Updating certs...
2022-08-01T09:53:58.183Z [INFO]  handler.certwatcher: Webhooks changed. Updating certs...
2022-08-01T09:53:58.183Z [INFO]  handler.certwatcher: Webhooks changed. Updating certs...
2022-08-01T09:53:58.183Z [INFO]  handler.certwatcher: Webhooks changed. Updating certs...
2022-08-01T09:53:58.183Z [INFO]  handler.certwatcher: Webhooks changed. Updating certs...
2022-08-01T09:53:58.183Z [INFO]  handler.certwatcher: Webhooks changed. Updating certs...

I’m not the right person to diagnose issues with k8 or certmanager. I can tell you that these are not from Vault.

Did you get to resolve this issue? Same issue is happening on my GKE cluster, too.

Cpl of weeks ago I faced with the same problem and I fixed the problem but I couldn’t have understaood how it was fixed. Today I faced with same problem.