Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added support for multiple certs #45
The current enable.rb expects a single certificate in the Certificates.pem bundle. This fails in a scenario where a VM role is deployed with SSH key authentication. In this instance, both the SSH cert/key and the Azure Management certificate/key are present in the bundle file.
This update solves this case by iterating over the cert/key pair and attempting to decrypt using each of these, until a successful decryption is achieved or end of bundle is reached,