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
Metadata
Release files for certwiz 0.1.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 | |
|---|---|---|---|
| certwiz-0.1.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| certwiz-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / certwiz-0.1.0.tar.gz
| Download URL | certwiz-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2154e2987a490673e5020d3e5fe73ab511285d98e7289f3259221f6f94b2d911
|
|
BLAKE2b-256 checksum How to use checksums |
2f58456ee856ccd54f3156ce6131717b0ed179d0e1513d4c88ac0b3bdf7c9d90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / certwiz-0.1.0-py3-none-any.whl
| Download URL | certwiz-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afbc481a7cda144fd1943aaf366a56a7d5927592ecc93914c589a42c9f46f329
|
|
BLAKE2b-256 checksum How to use checksums |
83972fe12c6f488183d8a391faa5da66263b7038ff12a1666776ec4b4d2eb4bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|