credential

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

NewClient create client's credential

func NewServer

NewServer create server's credential

Types

type ClientOption

type ClientOption struct {
	// ChainPEMBlock chain of server issuer's
	ChainPEMBlock []byte
	// CertPEMBlock used by if server require and verify client cert; optional
	CertPEMBlock []byte
	// KeyPEMBlock used by if server require and verify client cert; optional
	KeyPEMBlock []byte
}

ClientOption option for client credential

type ServerOption

type ServerOption struct {
	// ChainPEMBlock chain of client issuer's
	ChainPEMBlock []byte
	// CertPEMBlock PEM encoded data
	CertPEMBlock []byte
	// KeyPEMBlock PEM encoded data
	KeyPEMBlock []byte
	// RequireAndVerifyClientCert enable verify client's cert
	RequireAndVerifyClientCert bool
}

ServerOption option for server credential

Jump to

Keyboard shortcuts

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