Documentation ¶
Index ¶
- func New(certType string, configJSON json.RawMessage) (module certhandler.CertModule, err error)
- type SWModule
- func (module *SWModule) ApplyCertificate(x509Certs []*x509.Certificate) (certInfo certhandler.CertInfo, password string, err error)
- func (module *SWModule) Clear() (err error)
- func (module *SWModule) Close() (err error)
- func (module *SWModule) CreateKey(password, algorithm string) (key crypto.PrivateKey, err error)
- func (module *SWModule) RemoveCertificate(certURL, password string) (err error)
- func (module *SWModule) RemoveKey(keyURL, password string) (err error)
- func (module *SWModule) SetOwner(password string) (err error)
- func (module *SWModule) ValidateCertificates() (validInfos []certhandler.CertInfo, invalidCerts, invalidKeys []string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(certType string, configJSON json.RawMessage) (module certhandler.CertModule, err error)
New creates ssh module instance.
Types ¶
type SWModule ¶
type SWModule struct {
// contains filtered or unexported fields
}
SWModule SW certificate module.
func (*SWModule) ApplyCertificate ¶
func (module *SWModule) ApplyCertificate(x509Certs []*x509.Certificate) ( certInfo certhandler.CertInfo, password string, err error, )
ApplyCertificate applies certificate.
func (*SWModule) CreateKey ¶
func (module *SWModule) CreateKey(password, algorithm string) (key crypto.PrivateKey, err error)
CreateKey creates key pair.
func (*SWModule) RemoveCertificate ¶
RemoveCertificate removes certificate.
func (*SWModule) ValidateCertificates ¶
func (module *SWModule) ValidateCertificates() ( validInfos []certhandler.CertInfo, invalidCerts, invalidKeys []string, err error, )
ValidateCertificates returns list of valid pairs, invalid certificates and invalid keys.
Click to show internal directories.
Click to hide internal directories.