summaryrefslogtreecommitdiff
path: root/lib/chef/resource/openssl_ec_private_key.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/openssl_ec_private_key.rb')
-rw-r--r--lib/chef/resource/openssl_ec_private_key.rb32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/chef/resource/openssl_ec_private_key.rb b/lib/chef/resource/openssl_ec_private_key.rb
index 996dd46734..746322dfc5 100644
--- a/lib/chef/resource/openssl_ec_private_key.rb
+++ b/lib/chef/resource/openssl_ec_private_key.rb
@@ -30,36 +30,36 @@ class Chef
introduced "14.4"
property :path, String,
- description: "An optional property for specifying the path to write the file to if it differs from the resource block's name.",
- name_property: true
+ description: "An optional property for specifying the path to write the file to if it differs from the resource block's name.",
+ name_property: true
property :key_curve, String,
- equal_to: %w{secp384r1 secp521r1 prime256v1 secp224r1 secp256k1},
- description: "The desired curve of the generated key (if key_type is equal to 'ec'). Run openssl ecparam -list_curves to see available options.",
- default: "prime256v1"
+ equal_to: %w{secp384r1 secp521r1 prime256v1 secp224r1 secp256k1},
+ description: "The desired curve of the generated key (if key_type is equal to 'ec'). Run openssl ecparam -list_curves to see available options.",
+ default: "prime256v1"
property :key_pass, String,
- description: "The desired passphrase for the key."
+ description: "The desired passphrase for the key."
property :key_cipher, String,
- equal_to: OpenSSL::Cipher.ciphers,
- validation_message: "key_cipher must be a cipher known to openssl. Run `openssl list-cipher-algorithms` to see available options.",
- description: "The designed cipher to use when generating your key. Run `openssl list-cipher-algorithms` to see available options.",
- default: "des3"
+ equal_to: OpenSSL::Cipher.ciphers,
+ validation_message: "key_cipher must be a cipher known to openssl. Run `openssl list-cipher-algorithms` to see available options.",
+ description: "The designed cipher to use when generating your key. Run `openssl list-cipher-algorithms` to see available options.",
+ default: "des3"
property :owner, [String, Integer],
- description: "The owner applied to all files created by the resource."
+ description: "The owner applied to all files created by the resource."
property :group, [String, Integer],
- description: "The group ownership applied to all files created by the resource."
+ description: "The group ownership applied to all files created by the resource."
property :mode, [Integer, String],
- description: "The permission mode applied to all files created by the resource.",
- default: "0600"
+ description: "The permission mode applied to all files created by the resource.",
+ default: "0600"
property :force, [TrueClass, FalseClass],
- description: "Force creation of the key even if the same key already exists on the node.",
- default: false, desired_state: false
+ description: "Force creation of the key even if the same key already exists on the node.",
+ default: false, desired_state: false
action :create do
description "Generate the ec private key"