djkormo / adcs-issuer

BSD 3-Clause "New" or "Revised" License
22 stars 11 forks source link

Unable to set caBundle correctly #103

Closed EliSauder closed 2 months ago

EliSauder commented 2 months ago

This issue is likely me being stupid, but I cannot figure out how to get the caBundle of the clusterIssuer to work correctly. I am pulling the cert of our issuer as a PEM, copying the base64 content as a single line, and setting spec.caBundle to that value. Example:

spec:
  caBundle: "My base64 cert without header and footer"

However when I then go to actually load it into the cluster I am getting this error: Secret in version "v1" cannot be handled as a Secret: illegal base64 data at input byte 3

Is there some secret ritual I need to do to get the kubernete deities to look favorably upon my cert?

EliSauder commented 2 months ago

Turns out, it was my own stupidity; I hadn't encoded the username and password in the credentials...

djkormo commented 2 months ago

You're welcome.