enroll

package
v0.19.87 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 20 Imported by: 1

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 *edgerouter.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, keyAlg config.KeyAlgVar) 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, keyAlg config.KeyAlgVar) 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