Sign inSign up

juandariogg/simpleca

By juandariogg

Updated about 2 years ago

A simple Certificate Authority (CA) for mock and testing purposes.

Image
Security
Developer tools
0

252

juandariogg/simpleca repository overview

 _____ _                 _      _____       
/  ___(_)               | |    /  __ \      
\ `--. _ _ __ ___  _ __ | | ___| /  \/ __ _ 
 `--. \ | '_ ` _ \| '_ \| |/ _ \ |    / _` |
/\__/ / | | | | | | |_) | |  __/ \__/\ (_| |
\____/|_|_| |_| |_| .__/|_|\___|\____/\__,_|
                  | |                       
                  |_|

A simple Certificate Authority (CA) for mock and testing purposes

Features

  • Certificate Generation
    • crt and pfx in a zip file
    • crt and pfx in a json
  • Certificate Revocation
    • Posting a .crt
    • Posting a json containing the public key

Configuration

The CA subject is customized through environment variables. An example is provided in the repo .env file

CA_CN=CATEST
CA_O=TEST
CA_OU=TEST
CA_S=Madrid
CA_L=Madrid
CA_C=ES
[email protected]
CA_PWD=Abc123
CRL_HOSTS=http://localhost:8008;https://my.custom.domain

Note.

CRL_HOST must contain a ; separated list of possible hosts the CA is going to be deployed. If a custom domain name or port is used must be included.

Deployment

Through docker compose

services:
    simpleca:
        image: juandariogg/simpleca:latest
        ports:
            - 8008:8008
        env_file: ".env"
        network_mode: host

Tag summary

Content type

Image

Digest

sha256:c4cea8485

Size

88.7 MB

Last updated

about 2 years ago

docker pull juandariogg/simpleca