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.0.0.tar.gz (2.5 kB view hashes)

Uploaded Source

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