diff options
author | Tim Smith <tsmith@chef.io> | 2018-08-14 17:13:08 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-08-14 17:13:08 -0700 |
commit | 65b92f00cb59a0b41ce29be38387a3cebb6fc5b4 (patch) | |
tree | f8546a3de6a48738e5afbd5006fbd1d0356e15e4 /lib/chef/resource/openssl_ec_public_key.rb | |
parent | 871edf5561c8cc35a1384cb4a41c953819023eb7 (diff) | |
download | chef-65b92f00cb59a0b41ce29be38387a3cebb6fc5b4.tar.gz |
Add the helper methods to the library
Also use ::OpenSSL in a few other places.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/openssl_ec_public_key.rb')
-rw-r--r-- | lib/chef/resource/openssl_ec_public_key.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/openssl_ec_public_key.rb b/lib/chef/resource/openssl_ec_public_key.rb index 6a1b11548f..eb2f311d01 100644 --- a/lib/chef/resource/openssl_ec_public_key.rb +++ b/lib/chef/resource/openssl_ec_public_key.rb @@ -57,9 +57,9 @@ class Chef raise ArgumentError, "You cannot specify both 'private_key_path' and 'private_key_content' properties at the same time." if new_resource.private_key_path && new_resource.private_key_content raise ArgumentError, "You must specify the private key with either 'private_key_path' or 'private_key_content' properties." unless new_resource.private_key_path || new_resource.private_key_content - raise "#{new_resource.private_key_path} not a valid private RSA key or password is invalid" unless priv_key_file_valid?((new_resource.private_key_path || new_resource.private_key_content), new_resource.private_key_pass) + raise "#{new_resource.private_key_path} not a valid private EC key or password is invalid" unless priv_key_file_valid?((new_resource.private_key_path || new_resource.private_key_content), new_resource.private_key_pass) - ec_key_content = gen_ec_public_key((new_resource.private_key_path || new_resource.private_key_content), new_resource.private_key_pass) + ec_key_content = gen_ec_pub_key((new_resource.private_key_path || new_resource.private_key_content), new_resource.private_key_pass) file new_resource.path do action :create |