You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need a way to also keep sync the latest root bundles from step-ca server. A simple idea is that maybe we can use step ca new --exec to execute step ca roots.
Why this is needed
To support step-ca support multiple roots feature.
Or maybe we can make ca.certs.root_ca.crt of values.yaml can accept multiple pem files.
Currently I faced this error - CA fingerprint: error decoding /home/step/certs/root_ca.crt: contains more than one PEM encoded block.
Looks like autocert want to insert env var - STEP_FINGERPRINT when controller inject renewer sidecar, but I can not find any information that STEP_FINGERPRINT env is must for step ca renew command.
So maybe we can remove related logic for controller ?
Activity
chris-lee-lb commentedon Nov 5, 2022
This features may also support step-ca federation feature as #21
chris-lee-lb commentedon Nov 5, 2022
Or maybe we can make
ca.certs.root_ca.crtof values.yaml can accept multiple pem files.Currently I faced this error -
CA fingerprint: error decoding /home/step/certs/root_ca.crt: contains more than one PEM encoded block.Looks like autocert want to insert env var -
STEP_FINGERPRINTwhen controller inject renewer sidecar, but I can not find any information thatSTEP_FINGERPRINTenv is must forstep ca renewcommand.So maybe we can remove related logic for controller ?
maraino commentedon Nov 9, 2022
Changing the code to avoid that error and support multiple files is quite simple. This is the code that shows that message:
autocert/controller/main.go
Lines 265 to 271 in f3ba90f
Assuming that the first certificate is the one used, to support multiple certs we will do something like this:
That will solve that error message, the main problem with integrating that right now is having the time to test it.