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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for certbot_deployer_vsphere-0.1.2.tar.gz
Algorithm Hash digest
SHA256 00cdf417f87f0cde0658df11e11280a41d390c4d43ab334707c117b851250c3d
MD5 a1886b4fcf0c42796682bf1f80e280aa
BLAKE2b-256 dd7038dc081233d1f5024aaee62ba953a2057a882b3c80c8df22be71e63a8d65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for certbot_deployer_vsphere-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a65a57291236c21383996d5f27b36340e1b76705134a431cd53fe3fd2e96b5c
MD5 f17df0e77d2829ef7c737f353d6fe317
BLAKE2b-256 beb92ea27207f634acaf500b6671c9142dad5d8766fe0386f94564ad3fd7f904

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