certificate

package module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2019 License: MIT Imports: 10 Imported by: 0

README

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?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(hosts ...string) error

Generate generates new certificates for the given |hosts|.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL