Documentation ¶
Index ¶
- Constants
- type Utils
- type UtilsService
- func (u *UtilsService) GenerateCSR(csr *x509.CertificateRequest, key interface{}) (*x509.CertificateRequest, error)
- func (u *UtilsService) GetCertsCAType(ctx context.Context, enroll bool) ([]*x509.Certificate, lamassuca.Certs, error)
- func (u *UtilsService) InsertNth(s string, n int) string
- func (u *UtilsService) ToHexInt(n *big.Int) string
- func (u *UtilsService) VerifyPeerCertificate(ctx context.Context, cert *x509.Certificate, enroll bool, ...) (string, error)
Constants ¶
View Source
const (
LamassuLoggerContextKey contextKey = "LamassuLogger"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Utils ¶
type Utils interface { VerifyPeerCertificate(ctx context.Context, cert *x509.Certificate, enroll bool, certCA *x509.Certificate) (string, error) GetCertsCAType(ctx context.Context, enroll bool) ([]*x509.Certificate, lamassuca.Certs, error) GenerateCSR(csr *x509.CertificateRequest, key interface{}) (*x509.CertificateRequest, error) InsertNth(s string, n int) string ToHexInt(n *big.Int) string }
type UtilsService ¶
type UtilsService struct {
// contains filtered or unexported fields
}
func (*UtilsService) GenerateCSR ¶
func (u *UtilsService) GenerateCSR(csr *x509.CertificateRequest, key interface{}) (*x509.CertificateRequest, error)
func (*UtilsService) GetCertsCAType ¶
func (u *UtilsService) GetCertsCAType(ctx context.Context, enroll bool) ([]*x509.Certificate, lamassuca.Certs, error)
func (*UtilsService) VerifyPeerCertificate ¶
func (u *UtilsService) VerifyPeerCertificate(ctx context.Context, cert *x509.Certificate, enroll bool, certCA *x509.Certificate) (string, error)
Click to show internal directories.
Click to hide internal directories.