Documentation ¶
Index ¶
- type Utils
- type UtilsService
- func (u *UtilsService) CheckIfNull(field []string) string
- func (u *UtilsService) GenerateCSR(csr *x509.CertificateRequest, key interface{}) (*x509.CertificateRequest, error)
- func (u *UtilsService) GetCertsCAType(ctx context.Context, enroll bool) ([]*x509.Certificate, caDTO.GetCasResponse, 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 ¶
This section is empty.
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, caDTO.GetCasResponse, error) GenerateCSR(csr *x509.CertificateRequest, key interface{}) (*x509.CertificateRequest, error) CheckIfNull(field []string) string }
type UtilsService ¶
type UtilsService struct {
// contains filtered or unexported fields
}
func (*UtilsService) CheckIfNull ¶
func (u *UtilsService) CheckIfNull(field []string) string
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, caDTO.GetCasResponse, 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.