pem

package
v0.0.0-...-de87630 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROVATE_KEY_FILE_NAME string = "private.pem" // 私钥文件名
	PUBLIC_KEY_FILE_NAME  string = "public.pem"  // 公钥文件名

	TLS_CERT_FILE_NAME string = "cert.pem"     // 证书cert文件名
	TLS_KEY_FILE_NAME  string = "key.pem"      //  证书key文件名
	TLS_ORG            string = "MUMU-DADA"    // 证书组织
	TLS_UNIT           string = "OneWordsAuth" //  证书部门
	TLS_COMMON_NAME    string = "OneWordsAuth" //  证书common name
	TLS_URL            string = "127.0.0.1"    //  证书链接
)

Variables

This section is empty.

Functions

func CheckPemKey

func CheckPemKey() error

检查并生成公私钥

func GenRsaKey

func GenRsaKey(bits int) error

RSA公钥私钥产生

func MakeKey

func MakeKey() error

生成tls证书

Types

This section is empty.

Jump to

Keyboard shortcuts

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