certificate

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MulanPSL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CertDirName = "certs"

Variables

This section is empty.

Functions

func CertIsExists

func CertIsExists(host string) (bool, error)

CertIsExists 检查证书是否存在

func Init

func Init(rootPath string) error

Init 初始化证书管理器

func IssueNew

func IssueNew(host, email string) ([]byte, []byte, error)

IssueNew 申请新的证书 返回的第一个参数是证书的私钥内容 返回的第二个参数是证书的内容

Types

This section is empty.

Jump to

Keyboard shortcuts

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