x509

package
v1.4.0 Latest Latest
Warning

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

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

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

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

func KeyUsages

func KeyUsages(usages x509.KeyUsage) []string

func NodeIPList

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

func NodeStringList

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

func PublicKeyPEM(key interface{}) (string, error)

func ValCA

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

func ValCertificate

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

func ValPrivateKey

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

func ValPublicKey

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