Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrorNotConfig client configuration not found ErrorNotConfig = 0001 // ErrorDecodingVariable error decoding base64 variable from environment ErrorDecodingVariable = 1000 // ErrorParsingP12 error parsing P12 certificate ErrorParsingP12 = 1001 // ErrorLoadingP12 error loading P12 certificate ErrorLoadingP12 = 1002 // ErrorParsingCaCert error parsing ca certificate ErrorParsingCaCert = 1003 // ErrorLoadingCaCert error loading ca certificate ErrorLoadingCaCert = 1004 // ErrorLoadingSoap error loading soap client ErrorLoadingSoap = 1005 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CAClient ¶
CAClient CA client
func GetDefaultCAClient ¶
GetDefaultCAClient get singleton for caclient
func (*CAClient) CertRequest ¶
func (ca *CAClient) CertRequest(csr *x509.CertificateRequest, username, password string) ([]byte, error)
CertRequest send a certificate request to and CA
type ClientError ¶
type ClientError struct { Code int // contains filtered or unexported fields }
ClientError Ca client error
func NewError ¶
func NewError(err string, code int) *ClientError
NewError create a new error for ca client
func (*ClientError) Error ¶
func (e *ClientError) Error() string
type TCom ¶
type TCom interface {
RequestCertificate(cert *x509.CertificateRequest, deviceID string, secret string) ([]byte, error)
}
TCom methods for the transport comunication protocol
type WsdlTP ¶
type WsdlTP struct {
// contains filtered or unexported fields
}
WsdlTP wsdl transport protocol
func (*WsdlTP) RequestCertificate ¶
func (w *WsdlTP) RequestCertificate(cert *x509.CertificateRequest, deviceID string, secret string) ([]byte, error)
RequestCertificate for webservice interface
Click to show internal directories.
Click to hide internal directories.