Documentation ¶
Index ¶
- Constants
- func ExtKeyUsages(usages []x509.ExtKeyUsage) []string
- func KeyUsages(usages x509.KeyUsage) []string
- func NodeIPList(list []net.IP, binding Binding) yaml.Node
- func NodeStringList(list []string, binding Binding) yaml.Node
- func ParseCertificate(data string) (*x509.Certificate, error)
- func ParsePrivateKey(data string) (interface{}, error)
- func ParsePublicKey(data string) (interface{}, error)
- func PublicKeyPEM(key interface{}) (string, error)
- func ValCA(value interface{}, binding dynaml.Binding, args ...interface{}) (bool, string, error, bool)
- func ValCertificate(value interface{}, binding dynaml.Binding, args ...interface{}) (bool, string, error, bool)
- func ValPrivateKey(value interface{}, binding dynaml.Binding, args ...interface{}) (bool, string, error, bool)
- func ValPublicKey(value interface{}, binding dynaml.Binding, args ...interface{}) (bool, string, error, bool)
- type KeyUsage
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 NodeStringList ¶
func ParseCertificate ¶
func ParseCertificate(data string) (*x509.Certificate, error)
func ParsePrivateKey ¶
func ParsePublicKey ¶
func PublicKeyPEM ¶
func ValCertificate ¶
func ValPrivateKey ¶
Types ¶
type KeyUsage ¶
type KeyUsage interface { String() string AddTo(*x509.Certificate) }
func ParseKeyUsage ¶
Click to show internal directories.
Click to hide internal directories.