certbot-oci-certs
Oracle Cloud Infrastructure (OCI) Installer plugin for Certbot.
This plugin automates the process of installing a certificate acquired by certbot into OCI Certificates Management Service.
For more information on the OCI Certificates service please see the official documentation at https://docs.oracle.com/en-us/iaas/Content/certificates/home.htm
Configuration:
Install and configure the OCI CLI. See https://docs.cloud.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm for details.
To use this installer you will need:
an OCI account with adequate permission to Create / Update / Delete certificates stored in the Certificates Management Service
Installation
This package is now published on PyPi, which makes installation super easy. From your command line:
pip install certbot-oci-certs
Development
If you want to work on the code you should create a virtual environment and install it there:
git clone git@github.com:therealcmj/certbot-oci-certs.git cd certbot-oci-certs virtualenv dev . ./dev/bin/activate pip install -e .
You can then use your IDE as normal on the live code.
To use the debugger be sure to choose the correct virtual environment. For PyCharm go to Debug, Edit Configurations and then update the Interpreter to point to the newly created Virtual Environment.
Arguments
As of this writing this plug-in supports the following arguments on certbot’s command line:
--oci-certificate-id OCI_CERTIFICATE_ID
Certificate OCID (default: None)
--oci-certificate-name OCI_CERTIFICATE_NAME
Certificate Name (default: None)
--oci-compartment-id OCI_COMPARTMENT_ID
Compartment OCID (default: None)
--oci-auth-mode {configfile,instance,cloudshell}
Authentication mode - one of "configfile", "instance", "cloudshell" (default: configfile)
--oci-configfile OCI_CONFIGFILE
OCI CLI Configuration file (for authmode=configfile). (default: None)
--oci-profile OCI_PROFILE
OCI configuration profile (in OCI configuration file) (default: DEFAULT)
You can always get a list of the available arguments by running
certbot installer -h oci
Examples
Assuming you have previously acquired a certificate for demosite.ociateam.com (perhaps using the certbot-dns-oci plug-in) you can install it via:
certbot install \ --logs-dir logs --work-dir work --config-dir config \ --installer oci \ --oci-compartment $MYOCICOMPARTMENT \ --cert-path demosite.ociateam.com/cert.pem \ --key-path demosite.ociateam.com/privkey.pem \ --chain-path demosite.ociateam.com/chain.pem \ -d demosite.ociateam.com
If you want to acquire a certificate AND install it in one go using both of my plug-ins you can do that too…
CERTNAME=demo$$.ociateam.com ; \ certbot run \ --test-cert \ --logs-dir logs --work-dir work --config-dir config \ --authenticator dns-oci \ --installer oci \ --oci-compartment $MYOCICOMPARTMENT \ --oci-certificate-name $CERTNAME \ --debug \ -d $CERTNAME
And to renew (just that one certificate) later it’s just:
CERTNAME=demo$$.ociateam.com ; \ certbot renew \ --test-cert \ --logs-dir logs --work-dir work --config-dir config \ --debug \ --cert-name $CERTNAME
CAUTION:
Please do remember tat “certbot renew” tries to renew all certs nearing expiration. If you use the –oci-certificate-name command line argument when running “certbot renew” you’re going to make a mess of things. So be cautious and renew certs one by one OR remember to leave that command line argument off!
YOU HAVE BEEN WARNED.
Metadata
Release files for certbot-oci-certs 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| certbot_oci_certs-0.2.0.tar.gz | 9.2 kB | Without provenance | Details for certbot_oci_certs-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| certbot_oci_certs-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for certbot_oci_certs-0.2.0-py3-none-any.whl |
Total release size: 18.4 kB
Release files / certbot_oci_certs-0.2.0.tar.gz
| Download URL | certbot_oci_certs-0.2.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34a8821782670774e1a6680158aae960767cff8656f247a827bca666d0aff6ad
|
|
BLAKE2b-256 checksum How to use checksums |
7352fe063c0db13da846310499ef9d9113483a3d85ab18803c0a716f8e92e36a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / certbot_oci_certs-0.2.0-py3-none-any.whl
| Download URL | certbot_oci_certs-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
393b247d85ae485452e0dba67116ddac5fafe3a1955ba60b86e0e704467726fe
|
|
BLAKE2b-256 checksum How to use checksums |
573ddfb23338d0d15bac5202f188c23b1875df1820a9aa6abd704056704a683a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Security for certbot-oci-certs 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.