vcf_vim_host_certificate

Execution module for ESXi host SSL certificate management.

saltext.vcf.modules.vcf_vim_host_certificate.info(host, profile=None)[source]

Return host cert info: issuer/subject/not_before/not_after/pem.

CLI Example:

salt '*' vcf_vim_host_certificate.info <host>
saltext.vcf.modules.vcf_vim_host_certificate.generate_csr(host, useip=True, profile=None)[source]

Generate a CSR for host. Returns PEM-encoded CSR.

CLI Example:

salt '*' vcf_vim_host_certificate.generate_csr <host>
saltext.vcf.modules.vcf_vim_host_certificate.install_cert(host, cert_pem, profile=None)[source]

Install a signed cert PEM on host.

CLI Example:

salt '*' vcf_vim_host_certificate.install_cert <host> <cert_pem>
saltext.vcf.modules.vcf_vim_host_certificate.refresh_cert(host, profile=None)[source]

Re-fetch the host cert from VECS / KMS.

CLI Example:

salt '*' vcf_vim_host_certificate.refresh_cert <host>
saltext.vcf.modules.vcf_vim_host_certificate.refresh_ca_bundle(host, profile=None)[source]

Refresh the trusted CA bundle on host.

CLI Example:

salt '*' vcf_vim_host_certificate.refresh_ca_bundle <host>