Skip to main content

A tool to manage Xolphin certificates

Project description

This script communicates with the Xolphin API to manage certificates.
The script is pretty basic and doesnt contain much error handling.
also the output is plain json sometimes. But it gets the job done.
What it will do:

xcert.py list-requests          # Lists all current certificates at Xolphin.
         request <domain-name>  # Request a certificate. If you request a wildcard 
                                # domain, e.g. *.fd.nl, make sure to put quotes 
                                # around the name, e.g. '*.fd.nl'.
                                # This will also create a key and a csr file in the working directory
         status <domain-name>   # Gets the status of a request. This scripts uses domain validation
                                # So it will show which CNAME to put in your DNS zone.
         validate <domain-name> # (re)validates a request, in case an earlier validation has failed somehow.
                                # Use 'xcert.py status <domain-name>' to get the new CNAME
         list-certs             # List current certificates in Xolphin
         download <domain-name> # Downloads the certificate with the domain name specified. It will also download the ca-bundle.
                                # It will save them in the current working directory as .crt and .ca file
         create-pem <filename>  # Creates a <filename>.pem from a <filename>.crt, <filename>.ca and a <filename>.key
         create-cer <filename>  # Creates a <filename>.pem from a <filename>.crt and a<filename>.ca
         kube-secret <filename> # Prints a kubernetes tls secret with a base64 encoded tls.crt and tls.key from a <filename>.cer and <filename>.key

The script relies on 2 env vars for username and password for Xolphin. So use something like :
export XOLPHIN_USER='xolphin.user@fdmediagroep.nl'
export XOLPHIN_PASSEORD='secretpassword'

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

xcert-0.0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

xcert-0.0.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file xcert-0.0.3.tar.gz.

File metadata

  • Download URL: xcert-0.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for xcert-0.0.3.tar.gz
Algorithm Hash digest
SHA256 93c13f4c1c34ed347c5fc4c62b2298ff9fb2806e67cd68b010624ce8bd0fc771
MD5 48777a84053c1a811aa5dcf97c0047ce
BLAKE2b-256 faa4db63b58bdd7fdfafea2ac9cdbd1d1e9b7125118cef4935d94456b57059bd

See more details on using hashes here.

File details

Details for the file xcert-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: xcert-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for xcert-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3f3335c53acb2a548c3191a863b1bd008c26a6b389a77e8f64e49cf251a9b7c3
MD5 820ad1727843fd316a3cafcdc48db150
BLAKE2b-256 769c25206c7ddcd7253f816774608ca64f160e5c1ce7eb6966d125ffa9823806

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