1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-26 03:10:00 -05:00
vsphere-automation-sdk-python/samples/vsphere/vcenter/certificatemanagement
Roland Sommer 844c2e8187 Fix argument handling
The `key` part of the argument handling has to be right after `args`, otherwise you'd get an `AttributeError` when trying to call `encode` on the `args` object.

Signed-off-by: Roland Sommer <rol@ndsommer.de>
2023-12-21 13:40:50 +01:00
..
gencsr.py new samples for 7032 release 2022-04-28 14:40:21 +05:30
get_tls_certificate.py new samples for 7032 release 2022-04-28 14:40:21 +05:30
README.md new samples for 7032 release 2022-04-28 14:40:21 +05:30
renew_tls_certificate.py new samples for 7032 release 2022-04-28 14:40:21 +05:30
replace_tls_certificate_with_vmca_signed.py new samples for 7032 release 2022-04-28 14:40:21 +05:30
replace_tls_certificate.py Fix argument handling 2023-12-21 13:40:50 +01:00
replace_vmca_root.py new samples for 7032 release 2022-04-28 14:40:21 +05:30
trusted_root_chains_create.py new samples for 7032 release 2022-04-28 14:40:21 +05:30
trusted_root_chains_delete.py new samples for 7032 release 2022-04-28 14:40:21 +05:30
trusted_root_chains_get.py new samples for 7032 release 2022-04-28 14:40:21 +05:30
trusted_root_chains_list.py new samples for 7032 release 2022-04-28 14:40:21 +05:30

This directory contains samples for managing the MACHINE SSL certificate and the TRUSTED ROOT CHAINS

The sample were tested against vSphere 7.0+

TRUSTED ROOT CHAINS Create/List/Delete/Get operations

Sample Description
trusted_root_chains_create.py Demonstrates creation of the trusted root chain in vCenter.
trusted_root_chains_list.py Demonstrates listing of the aliases of the published trusted root chains in vCenter.
trusted_root_chains_delete.py Demonstrates deletion of the trusted root chain corresponding to the provided alias.
trusted_root_chains_get.py Demonstrates retrieval of the trusted root chain corresponding to the provided alias.

Tls certificate Renew/Get/Replace/Replace with VMCA operations

Sample Description
replace_tls_certificate.py Demonstrates replacement of the machine ssl certificate with a custom certificate signed by a third party CA.
renew_tls_certificate.py Demonstrates renewal of the machine ssl certificate for the given duration of time.
get_tls_certificate.py Demonstrates retrieval of the machine ssl certificate along with the X.509 certificate fields.
replace_tls_certificate_with_vmca_signed.py Demonstrates replacement of the machine ssl certificate with a VMCA signed certificate.

VMCA ROOT replace operation

Sample Description
replace_vmca_root.py Demonstrates replacement of the VMCA root certificate and regeneration of all the other certificates.

Testbed Requirement:

- 1 vCenter Server on version 7.0+
- The username being used to run the sample should have either the CertificateManagement.Manage or
  the CertificateManagement.Administer privilege depending on the operation which is intended to be performed.