chef-boneyard/chef-api

Seemingly spurious SSL Key Error

Closed this issue · 2 comments

When I leave SSL verification enabled, chef-api fails to connect toe the chef server with this error:

OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key: nested asn1 error
from /var/lib/gems/2.0.0/gems/chef-api-0.5.0/lib/chef-api/connection.rb:250:in `initialize'

I have chef-api configured to point at the same crt file I use with knife to verify SSL connections to my chef server, so I presume it's an OK file. It is a self-signed file generated by the server if that matters. Is there some sort of conversion or something I need to do to get it to work with chef-api?

Hrm - that's pretty sad 😦. Can you share your config please?

Closing due to inactivity.