chef / cheffish

Resources and tools for testing and interacting with Chef and Chef Server.
Apache License 2.0
38 stars 28 forks source link

Support PKCS#8 SHA1 fingerprints used by AWS for generated keys. #4

Closed andrewdotn closed 10 years ago

andrewdotn commented 10 years ago

Unfortunately AWS uses a different fingerprint function for key pairs depending on whether you imported them into AWS or used their generation button. This adds support for several different fingerprint functions. A pull request for chef-metal-fog that depends on this is forthcoming.

I’ve used the openssl_pkcs8 gem to compute the PKCS#8 representation. It has a bit of native code that calls into the OpenSSL library linked into Ruby. Hope that’s ok, let me know if it isn’t. Thanks!

jkeiser commented 10 years ago

Binary dependency is probably OK (assuming it compiles on all the platforms we end up caring about). Thank you for adding tests :)