enroll

package
v0.24.442 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 21 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 ziti.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 ziti.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