Skip to main content

author = Certbot Deployer plugin for deploying web certificates to VSphere

Project description

certbot_deployer_vsphere

Certbot Deployer plugin for deploying web certificates for the vSphere web UI via Certbot "deploy hook".

Requires

  • Python 3.9+
  • vSphere 7 or 8

Installation

You can install with pip:

python3 -m pip install certbot_deployer_vsphere

Or install from source:

git clone <url>
pip install certbot_deployer_vsphere

Usage

Examples

Examples assume the tool is being run as a Certbot deploy hook, and the environment variable RENEWED_LINEAGE points to the live certificate directory just updated by Certbot.

To deploy the certificate bundle indicated by $RENEWED_LINEAGE to $VSPHEREHOST:

certbot-deployer-vsphere --user $VSPHEREUSER --password $VSPHEREPASSWORD --host $VSPHEREHOST

Config

It is recommended that you store the password in the Certbot Deployer configuration file (/etc/certbot_deployer/certbot_deployer.conf) with appropriate permissions rather than providing it as an argument and leaving it visible in the process list

{
  [...],
  "vsphere": {
    "user": "vsphereuser",
    "password": "vspherepassword",
    "host": "vspherehost",
  }
}

Reference

usage: certbot-deployer vsphere [-h] --user USER --password PASSWORD --host
                                HOST [--tls-no-verify]

Certbot Deployer plugin for deploying web certificates to VSphere

options:
  -h, --help            show this help message and exit
  --user USER, -u USER  vSphere API user
  --password PASSWORD, -p PASSWORD
                        vSphere API password
  --host HOST, -H HOST  vsphere host to target
  --tls-no-verify       Skip TLS verification of the API endpoints e.g. if
                        deploying Certbot certificates over self-signed
                        certificates currently in-place

Contributing

Merge requests are welcome. You should probably open an issue first to discuss what you would like to change.

To run the test suite:

# Dependent targets create venv and install dependencies
make

Please make sure to add/update tests along with any changes.

License

License :: OSI Approved :: MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certbot_deployer_vsphere-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certbot_deployer_vsphere-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file certbot_deployer_vsphere-0.1.0.tar.gz.

File metadata

File hashes

Hashes for certbot_deployer_vsphere-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97929d24486f759410746617e9fac14804c01449ace3d6d759ccdbd7edc2eb6d
MD5 b422932bc0761a922579b8a6d8c5efc5
BLAKE2b-256 8acbea205ee48d08df64555e5d92793f7b36f8bd98b12b81a76e317c94b49d6a

See more details on using hashes here.

File details

Details for the file certbot_deployer_vsphere-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_deployer_vsphere-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38b5f59fbd3a676f34b048bb4cfdc971a0d8d29506a0b50a99006928a9bfd803
MD5 2ee45f058f41db1ff9cddb7e8ea542d7
BLAKE2b-256 42c3a54eaa8bedd2e5cf6a61fed2df7ea945493d4cab8f39343fdbff6f881209

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page