Posted over 4 years ago. Visible to the public.

Chef knife SSL Validation error on FreeBSD

If you're using Chef on FreeBSD you might stumble upon the following error message when using the knife command.

Copy
ERROR: SSL Validation failure connecting to host: api.opscode.com - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed ERROR: Could not establish a secure connection to the server. Use `knife ssl check` to troubleshoot your SSL configuration.

There are some tickets in the bugtracker and some resources describing workarounds which did not work for me.
However, setting the environment variable SSL_CERT_FILE on FreeBSD 10.1 worked for me.

Copy
% export SSL_CERT_FILE=/usr/local/etc/ssl/cert.pem % knife ssl check

This also helps if you experience the same ssl error when using berkshelf.

Owner of this card:

Avatar
jan0sch
Last edit:
over 4 years ago
by jan0sch
Posted by jan0sch to jan0sch's deck
This website uses cookies to improve usability and analyze traffic.
Accept or learn more