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

Can't get certificates from private ACME server #142

Open
feld opened this issue Sep 13, 2024 · 2 comments
Open

Can't get certificates from private ACME server #142

feld opened this issue Sep 13, 2024 · 2 comments

Comments

@feld
Copy link

feld commented Sep 13, 2024

When running chef-client on FreeBSD, if I attempt to get a certificate from a private ACME server it will always fail as the certificate verification fails. The root CA has already been trusted system-wide on FreeBSD, but the HTTP client (Faraday?) does not use the OS's trust store it seems?

I can get around it by editing libraries/acme.rb to not verify certificates when talking to the ACME server which is not the worst thing, but it works for now.

-  @client = Acme::Client.new(private_key: private_key, directory: directory)
+  @client = Acme::Client.new(private_key: private_key, directory: directory, connection_options: { ssl: { verify: false } })
@thoutenbos
Copy link
Collaborator

I would expect that to depend on the configuration of chef-client, which truststore is used on your system

@feld
Copy link
Author

feld commented Oct 19, 2024

The Faraday HTTP client used does not use the system trust store. This is the root cause.

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

2 participants