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.4.tar.gz (4.0 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.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xcert-0.0.4.tar.gz
  • Upload date:
  • Size: 4.0 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.4.tar.gz
Algorithm Hash digest
SHA256 a33f84f437e69a4e3bb5a2642c45ec2d73e55244cec4817d783a18a831925e75
MD5 d3ad1f19a20f6206fb0c00e55427aaaa
BLAKE2b-256 3d885c68886fdd1818da7feac29542801c51a3eae118d767c6f540e7f52705ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xcert-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ffeee46b63d307885b1e768f54a39948daaded6df8a438aeb3c07521d11a6f74
MD5 c2dabf0eb724bdf185c62935f9a95d39
BLAKE2b-256 cd34647fdf316fd85a27c56b69b6a3d79c5fb74b9ce8e1784549f429ac11f411

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