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

Fix problem when setting public key from String. #15

Merged
merged 1 commit into from
Aug 22, 2014

Conversation

johnbellone
Copy link
Contributor

While using the chef_client resource this failed because I wasn't passing OpenSSL::PKey::RSA but instead a String as the API indicates is acceptable. The formatter returns an Array tuple which fails a little bit further down when setting the JSON (assuming for payload) using the #to_pem method call.

This needs to return the RSA encoded public key instead of the
tuple (Array). It was failing attempting to call #to_pem here.
jkeiser added a commit that referenced this pull request Aug 22, 2014
Fix problem when setting public key from String.
@jkeiser jkeiser merged commit 047e9e8 into chef:master Aug 22, 2014
@thommay thommay added Bug Type: Bug Does not work as expected. and removed Bug labels Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants