Skip to main content

Minica python lib

Project description

Minicapy, python bindings for minica, a mini CA

A small python library for using minica to create ssl certificates

Installation

This package is pip installable, simply

pip install minicapy

You will need to have a fairly recent version of go and make installed in order to build the library, because I can't figure out manylinux to provide binary dist wheels.

Usage

from minicapy import minica

success = minica.create_domain_cert("somedomain.com")
if success > 0:
    print("Something went wrong")

# Or
success = minica.create_ip_cert("10.0.0.25")
if success > 0:
    print("Something went wrong")

Return codes

The functions return ints, which have the following meanings

Return code Meaning
0 Success
1 Couldn't create root cert files minica.pem/minica-key.pem
2 Couldn't create domain/ip cert, probably already exist

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

minicapy-1.1.2.tar.gz (16.0 kB view details)

Uploaded Source

File details

Details for the file minicapy-1.1.2.tar.gz.

File metadata

  • Download URL: minicapy-1.1.2.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for minicapy-1.1.2.tar.gz
Algorithm Hash digest
SHA256 0199f3c9067bb0bada9e77295cac1daa5bc5fcfff3f2689c305c650f96b9a1ff
MD5 c2d9914b01a1ceec61139bd60eae5bca
BLAKE2b-256 67826078b3c5a37ab0dec4d63d6cecadb5151e8a760febd81cc3ff210ae2e4c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page