Skip to main content

CertWiz

CertWiz is a Python module that simplifies the creation of self-signed x509 certificates.

Usage

see normal_use.py for example

The default settings file should contain the following keys before operation

[settings]
ssl_dir
ssl_key_file
ssl_cert_file
ssl_version
ssl_cert_reqs
ssl_ciphers
host
base_url
[secure]
ssl_key_file_password

Certwiz will populate these values if not already present using a series of defaults that may be edited after the first run

ensure an existing build_settings object is passed

from build_settings import BuildSettings

setpath = os.path.abspath(os.path.join(os.path.dirname(__file__)))
settings = BuildSettings(setpath + '/tests_output.ini', setpath + '/tests.ini')

Import and call certwiz

from certwiz import certwiz

certwiz(settings)

The resulting configuration file (located within the project directory)

[settings]
ssl_dir = '.ssl'
base_url = localhost
use_ssl = True
ssl_key_file = '.ssl/ss.key'
ssl_cert_file = '.ssl/ss.crt'
ssl_version = ssl.PROTOCOL_SSLv23
ssl_cert_reqs = ssl.CERT_OPTIONAL
ssl_ciphers = TLSv1
host = <your ip address>
[secure]
ssl_key_file_password = 3215ddaa-4d4f-4948-bb6e-a81f94e1fbb0

If one wishes to use properly signed certificates, simply update the configuration to reflect those values (self-signed certificates and the matching configuration will only be created if the ssl_cert_file and ssl_key_file values do not point to existing files)

It is important to note that the self-signed certificates are hostname specific and may experience problems should it be changed. This can be resolved by simple removing the self-signed certificate files and re-running certwiz

Installation

You can install CertWiz using pip:

pip install certwiz

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certwiz-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

certwiz-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file certwiz-0.1.0.tar.gz.

File metadata

  • Download URL: certwiz-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for certwiz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2154e2987a490673e5020d3e5fe73ab511285d98e7289f3259221f6f94b2d911
MD5 88d854405711dad6fa4e9b6a68882e04
BLAKE2b-256 2f58456ee856ccd54f3156ce6131717b0ed179d0e1513d4c88ac0b3bdf7c9d90

See more details on using hashes here.

File details

Details for the file certwiz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: certwiz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for certwiz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afbc481a7cda144fd1943aaf366a56a7d5927592ecc93914c589a42c9f46f329
MD5 38c3703c65996eb53b7fe4d1701b52a1
BLAKE2b-256 83972fe12c6f488183d8a391faa5da66263b7038ff12a1666776ec4b4d2eb4bf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page