mclib

package module
v1.20400.20402 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 4 Imported by: 5

README

Tests on Linux, MacOS and Windows Go Report Card GoDoc

This is a simple library to make it possible to run Mkcert's main method.

The script that updates the internal package does no logic changes to the source, it simply

  1. Renames the main package to internal.
  2. Renames the main func to RunMain
  3. Replaces any log.Fatal with panic to allow us to handle the errors.
  4. Exports getCAROOT().

For more advanced library usage, see this issue.

The mkcert source code is stored in a Git submodule to a tagged version, so to generate a new version, you need to clone this repo with --recursive, and then run:

go generate ./gen

We use semverpair versioning.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCAROOT

func GetCAROOT() string

GetCAROOT returns the CA root directory.

func RunMain

func RunMain() (err error)

RunMain runs mkcert's main function.

You need to set os.Args before calling this function, e.g.

os.Args = []string{"-install"}
os.Args = []string{"-cert-file", "cert.pem", "-key-file", "key.pem", "example.com"}

Types

This section is empty.

Directories

Path Synopsis
Command mkcert is a simple zero-config tool to make development certificates.
Command mkcert is a simple zero-config tool to make development certificates.

Jump to

Keyboard shortcuts

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