cert

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cert HTTPS证书

Package cert 证书管理

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Set(host string, c *tls.Certificate)
	Get(host string) *tls.Certificate
}

Cache 证书缓存接口

type Certificate

type Certificate struct {
	Cache Cache
}

Certificate 证书管理

func (*Certificate) Generate

func (c *Certificate) Generate(host string) (*tls.Config, error)

Generate 生成证书

Jump to

Keyboard shortcuts

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