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.1.tar.gz (7.1 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.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for certbot_deployer_vsphere-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bba8a557efc282a74dc0492a4a9d67fa43b4f9f9a725d2d79933d3fc6224b88a
MD5 b554cd5f9c36bd69cda9b3dced4ade0f
BLAKE2b-256 06d957ac6c014d114a7f63dbdafe3da3fb640cd375abcba2c05b2e0b5c434517

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for certbot_deployer_vsphere-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a65f85ad8d3a9bb4c1c20601a669809d622fc803953d6bec07cf209ca552c106
MD5 b639acd0db1e9b76754e8935e32f65f4
BLAKE2b-256 ddef102f505fa545a4a13a022bfd50b698aa8930fa6147ff9059b3e9a5a07009

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