initx

package
v0.0.0-...-86cf879 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair() (*rsa.PrivateKey, error)

GenerateKeyPair 生成一对具有指定字位数的RSA密钥

func GenerateRootPemFile

func GenerateRootPemFile(host, certFile, keyFile string) error

GenerateRootPemFile 生成新的根证书

func InitCert

func InitCert() (*x509.Certificate, crypto.Signer, error)

InitCert 初始化加载证书

func InitEthClient

func InitEthClient(ctx context.Context) (*contract.EthClient, func(), error)

func InitLogger

func InitLogger() (func(), error)

InitLogger initialize the log module

func InitOcspCache

func InitOcspCache() *memorycacher.Cache

func InitRootCert

func InitRootCert() error

InitRootCert 初始化根证书

func InitStorage

func InitStorage() (storage.ExecCloser, func(), error)

InitStorage 初始化存储引擎

Types

type CfsslHandler

type CfsslHandler struct {
	LocalSigner   signer.Signer
	OcspSigner    ocsp.Signer
	InfoHandler   http.Handler
	RevokeHandler http.Handler
}

func InitCfssl

func InitCfssl() (*CfsslHandler, error)

Jump to

Keyboard shortcuts

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