x509

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 21 Imported by: 5

Documentation

Index

Constants

View Source
const F_Cert = "x509cert"
View Source
const F_GenKey = "x509genkey"
View Source
const F_ParseCert = "x509parsecert"
View Source
const F_PublicKey = "x509publickey"

Variables

This section is empty.

Functions

func ExtKeyUsages added in v1.3.0

func ExtKeyUsages(usages []x509.ExtKeyUsage) []string

func KeyUsages added in v1.3.0

func KeyUsages(usages x509.KeyUsage) []string

func NodeIPList added in v1.3.0

func NodeIPList(list []net.IP, binding Binding) yaml.Node

func NodeStringList added in v1.3.0

func NodeStringList(list []string, binding Binding) yaml.Node

func ParseCertificate

func ParseCertificate(data string) (*x509.Certificate, error)

func ParsePrivateKey

func ParsePrivateKey(data string) (interface{}, error)

func ParsePublicKey

func ParsePublicKey(data string) (interface{}, error)

func PublicKeyPEM added in v1.3.0

func PublicKeyPEM(key interface{}, gen ...bool) (string, error)

func ValCA added in v1.3.0

func ValCA(value interface{}, binding dynaml.Binding, args ...interface{}) (bool, string, error, bool)

func ValCertificate added in v1.3.0

func ValCertificate(value interface{}, binding dynaml.Binding, args ...interface{}) (bool, string, error, bool)

func ValPrivateKey added in v1.3.0

func ValPrivateKey(value interface{}, binding dynaml.Binding, args ...interface{}) (bool, string, error, bool)

func ValPublicKey added in v1.3.0

func ValPublicKey(value interface{}, binding dynaml.Binding, args ...interface{}) (bool, string, error, bool)

Types

type KeyUsage

type KeyUsage interface {
	String() string
	AddTo(*x509.Certificate)
}

func ParseKeyUsage

func ParseKeyUsage(name string) KeyUsage

Jump to

Keyboard shortcuts

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