Class: Ansible::Ruby::Modules::Openssl_publickey
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Openssl_publickey
- Defined in:
- lib/ansible/ruby/modules/generated/crypto/openssl_publickey.rb
Overview
This module allows one to (re)generate OpenSSL public keys from their private keys. It uses the pyOpenSSL python library to interact with openssl. Keys are generated in PEM format. This module works only if the version of PyOpenSSL is recent enough (> 16.0.0).
Instance Method Summary collapse
-
#force ⇒ Symbol?
Should the key be regenerated even it it already exists.
-
#format ⇒ :PEM, ...
The format of the public key.
-
#path ⇒ String
Name of the file in which the generated TLS/SSL public key will be written.
-
#privatekey_passphrase ⇒ String?
The passphrase for the privatekey.
-
#privatekey_path ⇒ String
Path to the TLS/SSL private key from which to generate the public key.
-
#state ⇒ :present, ...
Whether the public key should exist or not, taking action if the state is different from what is stated.
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
#force ⇒ Symbol?
16 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_publickey.rb', line 16 attribute :force |
#format ⇒ :PEM, ...
20 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_publickey.rb', line 20 attribute :format |
#path ⇒ String
24 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_publickey.rb', line 24 attribute :path |
#privatekey_passphrase ⇒ String?
32 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_publickey.rb', line 32 attribute :privatekey_passphrase |
#privatekey_path ⇒ String
28 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_publickey.rb', line 28 attribute :privatekey_path |
#state ⇒ :present, ...
12 |
# File 'lib/ansible/ruby/modules/generated/crypto/openssl_publickey.rb', line 12 attribute :state |