ca

package
v0.0.0-...-b0038d1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCertificate

func CheckCertificate(capath, certpath string) (bool, error)

func ParsePublicKey

func ParsePublicKey(content []byte) (*rsa.PublicKey, error)

Types

type CertificateFile

type CertificateFile struct {
	// contains filtered or unexported fields
}

type CertificateManager

type CertificateManager struct {
	Path string
	// contains filtered or unexported fields
}

func CreateCertificateManager

func CreateCertificateManager(path string) (*CertificateManager, error)

func (*CertificateManager) Add

func (m *CertificateManager) Add(user string, alias string, key *rsa.PublicKey) (hash string, err error)

func (*CertificateManager) Remove

func (m *CertificateManager) Remove(alias string) error

type ServerCertificate

type ServerCertificate struct {
	CACertificate []byte
	Certificate   []byte
	Key           []byte
}

func MakeServerCertificate

func MakeServerCertificate(vpnName string) (*ServerCertificate, error)

Jump to

Keyboard shortcuts

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