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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file certbot_deployer_vsphere-0.1.1.tar.gz.
File metadata
- Download URL: certbot_deployer_vsphere-0.1.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bba8a557efc282a74dc0492a4a9d67fa43b4f9f9a725d2d79933d3fc6224b88a
|
|
| MD5 |
b554cd5f9c36bd69cda9b3dced4ade0f
|
|
| BLAKE2b-256 |
06d957ac6c014d114a7f63dbdafe3da3fb640cd375abcba2c05b2e0b5c434517
|
File details
Details for the file certbot_deployer_vsphere-0.1.1-py3-none-any.whl.
File metadata
- Download URL: certbot_deployer_vsphere-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a65f85ad8d3a9bb4c1c20601a669809d622fc803953d6bec07cf209ca552c106
|
|
| MD5 |
b639acd0db1e9b76754e8935e32f65f4
|
|
| BLAKE2b-256 |
ddef102f505fa545a4a13a022bfd50b698aa8930fa6147ff9059b3e9a5a07009
|