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{}, gen ...bool) (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 ¶ added in v1.3.0
func ExtKeyUsages(usages []x509.ExtKeyUsage) []string
func NodeStringList ¶ added in v1.3.0
func ParseCertificate ¶
func ParseCertificate(data string) (*x509.Certificate, error)
func ParsePrivateKey ¶
func ParsePublicKey ¶
func PublicKeyPEM ¶ added in v1.3.0
func ValCertificate ¶ added in v1.3.0
func ValPrivateKey ¶ added in v1.3.0
Types ¶
type KeyUsage ¶
type KeyUsage interface { String() string AddTo(*x509.Certificate) }
func ParseKeyUsage ¶
Click to show internal directories.
Click to hide internal directories.