nsxt_certificates – Add a New Certificate¶
New in version 2.7.
Synopsis¶
Adds a new private-public certificate or a chain of certificates (CAs) and, optionally, a private key that can be applied to one of the user-facing components (appliance management or edge). The certificate and the key should be stored in PEM format. If no private key is provided, the certificate is used as a client certificate in the trust store.
Parameters¶
Examples¶
- hosts: 127.0.0.1
connection: local
become: yes
vars_files:
- answerfile.yml
tasks:
- name: Add a new certificate
nsxt_certificates:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: False
display_name: "Certificate_file"
pem_encoded_file: "/Path/to/crt/file"
passphrase: "paraphrase"
state: "present"