Documentation ¶
Index ¶
- func CreateCsr(key crypto.PrivateKey, algo x509.SignatureAlgorithm, subj *pkix.Name, ...) (string, error)
- type Csr
- type Enroller
- type RestEnroller
- func (re *RestEnroller) Enroll(jwtBuf []byte, silent bool, engine string, keyAlg config.KeyAlgVar) error
- func (re *RestEnroller) LoadConfig(cfgmap map[interface{}]interface{}) error
- func (re *RestEnroller) Send(client *resty.Client, enrollUrl string, e *apiPost) (*rest_model.EnrollmentCertsEnvelope, error)
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 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) 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)
Click to show internal directories.
Click to hide internal directories.