Class: Ansible::Ruby::Modules::Openssl_privatekey
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Openssl_privatekey
- Defined in:
- lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb
Overview
This module allows one to (re)generate OpenSSL private keys. It uses the pyOpenSSL python library to interact with openssl. One can generate either RSA or DSA private keys. Keys are generated in PEM format.
Instance Method Summary collapse
-
#cipher ⇒ String?
The cipher to encrypt the private key.
-
#force ⇒ Symbol?
Should the key be regenerated even if it already exists.
-
#passphrase ⇒ String?
The passphrase for the private key.
-
#path ⇒ String
Name of the file in which the generated TLS/SSL private key will be written.
-
#size ⇒ Integer?
Size (in bits) of the TLS/SSL key to generate.
-
#state ⇒ :present, ...
Whether the private key should exist or not, taking action if the state is different from what is stated.
-
#type ⇒ :RSA, ...
The algorithm used to generate the TLS/SSL private key.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#cipher ⇒ String?
Returns The cipher to encrypt the private key. (cipher can be found by running ‘openssl list-cipher-algorithms`).
36 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 36 attribute :cipher |
#force ⇒ Symbol?
Returns Should the key be regenerated even if it already exists.
24 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 24 attribute :force |
#passphrase ⇒ String?
Returns The passphrase for the private key.
32 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 32 attribute :passphrase |
#path ⇒ String
Returns Name of the file in which the generated TLS/SSL private key will be written. It will have 0600 mode.
28 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 28 attribute :path |
#size ⇒ Integer?
Returns Size (in bits) of the TLS/SSL key to generate.
16 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 16 attribute :size |
#state ⇒ :present, ...
Returns Whether the private key should exist or not, taking action if the state is different from what is stated.
12 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 12 attribute :state |
#type ⇒ :RSA, ...
Returns The algorithm used to generate the TLS/SSL private key.
20 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 20 attribute :type |