Skip to main content

A tool to manage Xolphin certificates

Project description

##Getting started

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.

Installation

Run (preferably in a venv environment):

python3 -m pip install xcert

Usage

usage: xcert [-h] [--create-pem filename] [--kube-secret filename] [--list-requests]
             [--retry-validation domain_name] [--download-certificate domain_name]
             [--list-certificates] [--request-status domain_name]
             [--request-certificate domain_name] [--renew-certificate domain_name]

optional arguments:
  -h, --help            show this help message and exit
  --create-pem filename
                        Creates a .pem file with the certificate(.crt), the intermediates(.ca) and the key(.key). And a .cer file with the Certificate and the intermediates. Requires the following files: FILENAME.crt ,FILENAME.ca and FILENAME.key
  --kube-secret filename
                        Prints a kubernetes secret in yaml format generated from a cert/key. Requires a FILENAME.cer and a FILENAME.key
  --list-requests       Lists all pending requests at Xolphin
  --retry-validation domain_name
                        Triggers a validation of the certificate request with DOMAIN_NAME
  --download-certificate domain_name
                        Downloads the certificate for DOMAIN_NAME and saves it as DOMAIN_NAME.cer. Also downloads the corresponding intermediate certificates as DOMAIN_NAME.ca
  --list-certificates   Lists all current certificates at Xolphin
  --request-status domain_name
                        Gets the status of the request with the DOMAIN_NAME. If DOMAIN_NAME is "all" then list the status of all requests
  --request-certificate domain_name
                        Request a new certificate from Xolphin, and saves the generated DOMAIN_NAME.csr and DOMAIN_NAME.key
  --renew-certificate domain_name
                        Renews an existing certificate from Xolphin, and saves the generated DOMAIN_NAME.csr and DOMAIN_NAME.key

additional information:
    This program needs 2 environment variables to be set with your Xolphin credentials:
        XOLPHIN_USER='foo@bar.nl'
        XOLPHIN_PASSWORD='secret_password'
    It will use these credentials to authenticate to the Xolphin API.

##TODO Add build and publish instructions

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.7.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.7-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xcert-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 76b4b42be4de2aca8c38f9d2a03a51ebf5213f78b8334fd4610b1f3bc0d37c60
MD5 ec90fa29586a7ec337b223f621103612
BLAKE2b-256 02045d4e1e4b26417c08469018b87074f0a9d7b75c588039246dcbf8254bbd4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xcert-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9ddb23157dab90af11b45751d3daf7530a6e369012f7fa188f5e59f4a3afb3b5
MD5 cfb758d125bc23a39f3ef2e3d69a4a58
BLAKE2b-256 5fcc4d52f44a6be2fb0be391eb86c8683117660f4698254fe93018d92d2b104d

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