keyusage

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeyUsageCA = KeyUsage{
	KeyUsage: x509.KeyUsageCertSign | x509.KeyUsageCRLSign,

	ExtKeyUsages: nil,
}

Functions

func ExtKeyUsageFromString added in v0.2.2

func ExtKeyUsageFromString(ekuName string) (x509.ExtKeyUsage, error)

func KeyUsageFromString added in v0.2.2

func KeyUsageFromString(bitName string) (x509.KeyUsage, error)

Types

type KeyUsage

type KeyUsage struct {
	KeyUsage     x509.KeyUsage
	ExtKeyUsages []x509.ExtKeyUsage
}

func FromCSR added in v0.2.3

func FromCSR(req *x509.CertificateRequest) (KeyUsage, error)

func FromCertificate

func FromCertificate(cert *x509.Certificate) KeyUsage

func FromProtoStruct

func FromProtoStruct(s *pb.KeyUsage) KeyUsage

func PresetFromString

func PresetFromString(s string) (KeyUsage, error)

func (KeyUsage) Clone

func (u KeyUsage) Clone() KeyUsage

func (KeyUsage) Equals added in v0.0.4

func (a KeyUsage) Equals(b KeyUsage) bool

func (KeyUsage) Preset added in v0.0.4

func (ku KeyUsage) Preset() string

func (KeyUsage) ToProtoStruct

func (u KeyUsage) ToProtoStruct() *pb.KeyUsage

func (*KeyUsage) UnmarshalFlag

func (p *KeyUsage) UnmarshalFlag(s string) error

func (*KeyUsage) UnmarshalYAML

func (u *KeyUsage) UnmarshalYAML(unmarshal func(interface{}) error) error

func (KeyUsage) Verify added in v0.1.0

func (u KeyUsage) Verify() error

Jump to

Keyboard shortcuts

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