diff options
Diffstat (limited to 'lib/chef/resource/openssl_ec_public_key.rb')
-rw-r--r-- | lib/chef/resource/openssl_ec_public_key.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/openssl_ec_public_key.rb b/lib/chef/resource/openssl_ec_public_key.rb index 0cf81e4ee0..b66687f6e7 100644 --- a/lib/chef/resource/openssl_ec_public_key.rb +++ b/lib/chef/resource/openssl_ec_public_key.rb @@ -74,7 +74,7 @@ class Chef description: "The permission mode applied to all files created by the resource.", default: "0640" - action :create, description: "Generate the ec public key from a private key." do + action :create, description: "Generate the EC public key file from a private key." do 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 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) |