Skip to content

Instantly share code, notes, and snippets.

@danielsdeleo
Created August 3, 2012 23:38
Show Gist options
  • Save danielsdeleo/3252723 to your computer and use it in GitHub Desktop.
Save danielsdeleo/3252723 to your computer and use it in GitHub Desktop.
Sample output from the knife key check plugin
# See also: https://github.com/danielsdeleo/knife-plugins/blob/master/key_check.rb
ddeleo@boltzmann chef-oss-dev > knife key check chef-oss-dev-validator .chef/kallistec.pem
ERROR: Mismatch:
ERROR: /Users/ddeleo/opscode-ops/chef-oss-dev/.chef/kallistec.pem is not a valid key for client chef-oss-dev-validator
Public key extracted from private key:
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6tIhFprz5efiFF0zogxB
KBkn72n6x9aGbedzPnEG+ZiObyzrH5MeO7aYv51HfLBEozSMxiJxnADCN4Bus0Sr
8UHYZAKFLCkx67rpZHvl6xggEYHDSmMtUNNBHOQRIIbYi79JZeQTcKQNSzfyltiU
cnAjjMElU2LToWAZLC3imTTd6C+G1SvLJAyjgS5hc9KWeWRWdBt76MJXMyR8nv2c
4g9YCa87nfBwfqcjB3N0VV/HQqV07WKqcksaaPtfWksbMeEdwG5W6TIQyDsYjBte
xC+ZHCPjbjPPVDTz4KYkn/T/PsIfCbDjg9qQMU6FiWRN9PnJ+4cnVQJWLjE1JdJD
LQIDAQAB
-----END PUBLIC KEY-----
Public key from server:
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6SeMwbrka8BnO4mEio12
5HXtOzq/YYcv3qHED0xv4EG06doAIwNFOutWnh1gD/QgqYEtzEySUlYlclAaUqsz
swpsY37yuK1+3ImZ8bdpQaUAtBwgwh4OZpIgcOfdKphRwdqHz8ZVhEq+B5xEiAuQ
D0Ifi1gnlfPXcsGWfi11VyWEHvdbSk7tlQ9arfzmrNDADz/jHI/ixQXN26GzRwzS
QKGKjVK/4zjPAwZI1K1Yt+ABSq1QAukf2PQdrKWxiVAQ3eNyK9EFn0L1dRIu4LGP
8mxiBibLBpatqXpEfszZ4vQJMvQaprWZE5VxgBZ/XHEfhpt0GRkB5vjabsKQgr92
CQIDAQAB
-----END PUBLIC KEY-----
ddeleo@boltzmann chef-oss-dev > knife key check chef-oss-dev-validator .chef/chef-oss-dev-validator.pem
Match.
/Users/ddeleo/opscode-ops/chef-oss-dev/.chef/chef-oss-dev-validator.pem is a valid key for client chef-oss-dev-validator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment