Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.11 KB

README.md

File metadata and controls

53 lines (32 loc) · 1.11 KB

TestAuthority

Provides an easy way to issue SSL certificate(PFX,PEM) for a specific host. Contains tools for conversion to/from PEM format from/to PFX (PKCS12)

Quickstart

Requirements

To start Certificate Authority
dotnet TestAuthority.dll

To start project in docker container

docker run -p 5000:80 -d nomail/test-authority:latest

or

docker run \
-p 5000:80 \
-v /usr/share/test-authority:/usr/share/test-authority \
-e CrlSettings__CrlDistributionPoints__0=http://example.com/root.crl \
-e CrlSettings__CrlDistributionPoints__0=http://example.com/root1.crl \
-d \
 nomail/test-authority:latest

Usage

Issue certificate for example.com

http://localhost:5000/api/certificate?commonName=test-certificate&hostname=example.com&ipaddress=10.10.1.10&format=pem

Get root certificate

http://localhost:5000/api/certificate/root

Get dummy CRL file

http://localhost:5000/api/crl

Docker

https://hub.docker.com/r/nomail/test-authority/

Swagger enabled (WebUI)

You can use swagger UI for simple and explicit certificate issue.

http://localhost:5000