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, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#cipher ⇒ String?
36 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 36 attribute :cipher |
#force ⇒ Symbol?
24 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 24 attribute :force |
#passphrase ⇒ String?
32 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 32 attribute :passphrase |
#path ⇒ String
28 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 28 attribute :path |
#size ⇒ Integer?
16 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 16 attribute :size |
#state ⇒ :present, ...
12 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 12 attribute :state |
#type ⇒ :RSA, ...
20 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_privatekey.rb', line 20 attribute :type |