enroll

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCsr

func CreateCsr(key crypto.PrivateKey, algo x509.SignatureAlgorithm, subj *pkix.Name, sans *gateway.Sans) (string, error)

Types

type Csr

type Csr struct {
	Pem      string
	Name     string
	SanDns   []string
	SanEmail []string
	SanIp    []string
	SanUri   []string
}

type Enroller

type Enroller interface {
	Enroll(jwt []byte, silent bool, engine string) error
	LoadConfig(cfgmap map[interface{}]interface{}) error
}

func NewRestEnroller

func NewRestEnroller() Enroller

type RestEnroller

type RestEnroller struct {
	// contains filtered or unexported fields
}

func (*RestEnroller) Enroll

func (re *RestEnroller) Enroll(jwtBuf []byte, silent bool, engine string) error

func (*RestEnroller) LoadConfig

func (re *RestEnroller) LoadConfig(cfgmap map[interface{}]interface{}) error

func (*RestEnroller) Send

func (re *RestEnroller) Send(client *resty.Client, enrollUrl string, e *apiPost) (*rest_model.EnrollmentCertsEnvelope, error)

Jump to

Keyboard shortcuts

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