-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] x509.certificate_managed - ca_server did not return a certificate #66284
Comments
@nicholasmhughes Is it a custom backend on the CA server? Asking because the inbuilt The issue is the |
No custom backends. I just followed the docs as I stated. I'll have a PR later. |
Interesting, not sure where the returned bytes are encoded to base64 then. I have read about some people having issues with byte returns anyways, so maybe the |
…turn a certificate
closed by #66286 |
Description
When attempting to use the
x509.certificate_managed
state with the peer signing/issuer functionality show in the docs, an error is thrown stating that the server did not return a certificate.Given the look of the return and the fact that it's preceded with
b64:
, I decoded the return and found that theca_server
is returning a certificate:Tested on 3006.7 and 3007.0 minions with the same result. (It shouldn't matter, but the master is 3007.0)
Steps to Reproduce the behavior
Followed the example shown in the x509_v2 state docs pretty much verbatim (minion IDs were different)
Expected behavior
The state and execution module docs for x509_v2 state that base64 is supported, so I'd expect the base64-encoded certificate to be decoded and handled properly.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: