cert

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cert provides operation functions on CA cert and key.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCA

func GetCA() ([]byte, []byte, error)

GetCA returns a CA cert, a CA key or an error in file reading or writing process. If one of rootCA.crt and rootCA.key does not exist, new ones will be generated, wrote to current dir and returned. TODO: do not hardcode filename.

Types

This section is empty.

Jump to

Keyboard shortcuts

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