Certipie: a little companion for your certificate operations

Image of official school documents
Photo by Liam Truong on Unsplash

Installation

$ pip install certipie

Usage

The command line interface

$ pipx install certipie
$ cert
Usage: cert [OPTIONS] COMMAND [ARGS]...

A cli to generate certificate signing request and self-signed certificate
that can be used for testing purpose.

Options:
--version Show the version and exit.
-h, --help Show this message and exit.

Commands:
auto-cert Creates a self-signed certificate useful for tests.
csr Creates a certificate signing request file given...
install-completion Install completion script for bash, zsh and fish...
rsa Creates a pair of private/public keys using the RSA...
server Serves a swagger UI where you can perform the same...
$ cert install-completion
$ cert csr -f csr.pem
Organization: orga
State: Ile-de-France
Country: FR
City: Paris
Name: site.com
The certificate signing request has been successfully created in /home/kevin/...
  • To help us create a certificate signing request, the command prompts various necessary information that the certificate authority needs.
  • The name information represents the main domain name you want to submit in your request.
  • If you want to cover many domain names, use the option alt-names with a list of domains separated by commas.
  • Don’t hesitate to read the command documentation with -h option or read the project documentation for more information.
$ cert auto-cert -f cert.pem --validity=360
Organization: orga
State: Ile-de-France
Country: FR
City: Paris
The self-signed certificate has been successfully created in /home/kevin/...

The REST API

$ cert server
Screenshot of the swagger ui displayed by the server command
Swagger UI displayed by the server
An snippet code showing how to customize the certipie rest api
An example of api customization

Certipie api

Creation of csr using certipie api

--

--

--

Déserteur camerounais résidant désormais en France. Passionné de programmation, sport, de cinéma et mangas. J’écris en français et en anglais dû à mes origines.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Advantage of AWS benefits.

Leetcode — 202. Happy Number

Creating aavegotchi playdrop bot

All budding ethical hackers should take CS50x.

Linux command line basics

Linux command line basics

CA Assistant,Scanner and Video Background Exchanger

How to host a static site in netlify

The Dangerous Myth of 100% Code Coverage

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin Tewouda

Kevin Tewouda

Déserteur camerounais résidant désormais en France. Passionné de programmation, sport, de cinéma et mangas. J’écris en français et en anglais dû à mes origines.

More from Medium

Building a Store in Python

The Important Steps You Cannot Miss When Building Python Library Part 1

The Important Steps You Cannot Miss When Building Python Library Part 1"

Scraping Reddit posts data using PRAW- a Python Package.

Python | A very simple progress bar — tqdm