certconstraints

package
v0.0.0-...-74867d3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTechnicallyConstrained

func IsTechnicallyConstrained(cert *x509.Certificate) bool

IsTechnicallyConstrained determines if a given certificate is technically constrained. Slightly modified from https://github.com/jcjones/gx509/blob/master/gx509/technicalconstraints.go

Types

type Constraints

type Constraints struct {
	PermittedDNSDomains  []string
	ExcludedDNSDomains   []string
	PermittedIPAddresses []net.IPNet
	ExcludedIPAddresses  []net.IPNet
}

func Get

func Get(cert *x509.Certificate) (*Constraints, error)

Get returns the Constraints for a given x509 certificate

Jump to

Keyboard shortcuts

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