credential

package
Version: v0.3.19 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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

Source Files

Jump to

Keyboard shortcuts

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