Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsha/minica
minica is a small, simple CA intended for use in situations where the CA operator also operates each host where a certificate will be used.
https://github.com/jsha/minica
Last synced: 29 days ago
JSON representation
minica is a small, simple CA intended for use in situations where the CA operator also operates each host where a certificate will be used.
- Host: GitHub
- URL: https://github.com/jsha/minica
- Owner: jsha
- License: mit
- Created: 2016-09-28T06:16:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T22:59:40.000Z (6 months ago)
- Last Synced: 2024-05-29T12:48:25.483Z (6 months ago)
- Language: Go
- Size: 20.5 KB
- Stars: 2,919
- Watchers: 56
- Forks: 238
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Minica is a simple CA intended for use in situations where the CA operator
also operates each host where a certificate will be used. It automatically
generates both a key and a certificate when asked to produce a certificate.
It does not offer OCSP or CRL services. Minica is appropriate, for instance,
for generating certificates for RPC systems or microservices.On first run, minica will generate a keypair and a root certificate in the
current directory, and will reuse that same keypair and root certificate
unless they are deleted.On each run, minica will generate a new keypair and sign an end-entity (leaf)
certificate for that keypair. The certificate will contain a list of DNS names
and/or IP addresses from the command line flags. The key and certificate are
placed in a new directory whose name is chosen as the first domain name from
the certificate, or the first IP address if no domain names are present. It
will not overwrite existing keys or certificates.The certificate will have a validity of 2 years and 30 days.
# Installation
First, install the [Go tools](https://golang.org/dl/) and set up your `$GOPATH`.
Then, run:`go install github.com/jsha/minica@latest`
When using Go 1.11 or newer you don't need a $GOPATH and can instead do the
following:```
cd /ANY/PATH
git clone https://github.com/jsha/minica.git
go build
## or
# go install
```Mac OS users could alternatively use Homebrew: `brew install minica`
# Example usage
```
# Generate a root key and cert in minica-key.pem, and minica.pem, then
# generate and sign an end-entity key and cert, storing them in ./foo.com/
$ minica --domains foo.com# Wildcard
$ minica --domains '*.foo.com'
```