Skip to content
🔒 Creates self-signed certificates for local development.
Go
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/makecert
.drone.yml
.gitignore
Generate.go
Generate_test.go
LICENSE
README.md
README.src.md
certToFile.go
go.mod
keyToFile.go

README.md

certificate

Godoc Report Tests Coverage Sponsor

Creates self-signed certificates for local development using ECDSA and x509 Version 3. This will give you a green lock in modern versions of Chrome.

Installation

go get -u github.com/aerogo/certificate/...

Usage

Single domain

makecert -host local.example.com

Multi domain

makecert -host local.example.com,localhost,127.0.0.1

Output

The tool will create 4 files in the current directory:

  • root.crt (import this as a trusted authority into your browser)
  • root.key
  • server.crt (certificate used in your server)
  • server.key (private key used in your server)

Style

Please take a look at the style guidelines if you'd like to make a pull request.

Sponsors

Cedric Fung Scott Rayapoullé Eduard Urbach
Cedric Fung Scott Rayapoullé Eduard Urbach

Want to see your own name here?

You can’t perform that action at this time.