Documentation ¶
Index ¶
- func AddToKeystore(driverConfig *eUtils.DriverConfig, alias string, password []byte, ...) error
- func Heartbeat(config *core.CoreConfig, url string, username string, password string) (bool, error)
- func IsPfxRfc7292(byteCert []byte) (bool, error)
- func ParseURL(config *core.CoreConfig, url string) (string, string, string, string, string, error)
- func StoreKeystore(driverConfig *eUtils.DriverConfig, trustStorePassword string) ([]byte, error)
- func ValidateCertificate(certPath string, host string) (bool, error)
- func ValidateCertificateBytes(byteCert []byte, host string) (bool, error)
- func ValidateKeyStore(config *core.CoreConfig, filename string, pass string) (bool, error)
- func ValidateSendGrid(apiKey string) (bool, error)
- func VerifyCertificate(cert *x509.Certificate, host string) (bool, error)
- type AlgorithmIdentifier
- type ContentInfo
- type DigestInfo
- type MacData
- type Pfx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToKeystore ¶
func IsPfxRfc7292 ¶
IsPfx verfies if this looks like a pfx.
func StoreKeystore ¶
func StoreKeystore(driverConfig *eUtils.DriverConfig, trustStorePassword string) ([]byte, error)
func ValidateCertificate ¶
ValidateCertificate validates certificate pointed to by the path
func ValidateCertificateBytes ¶
ValidateCertificateBytes validates certificate bytes
func ValidateKeyStore ¶
ValidateKeyStore validates the sendgrid API key.
func ValidateSendGrid ¶
ValidateSendGrid validates the sendgrid API key.
func VerifyCertificate ¶
func VerifyCertificate(cert *x509.Certificate, host string) (bool, error)
VerifyCertificate
Types ¶
type AlgorithmIdentifier ¶
type AlgorithmIdentifier struct { Algorithm asn1.ObjectIdentifier // OBJECT IDENTIFIER, Parameters asn1.RawValue `asn1:"optional"` // ANY DEFINED BY algorithm OPTIONAL }
Definition here: https://tools.ietf.org/html/rfc5280
type ContentInfo ¶
type ContentInfo struct { ContentType asn1.ObjectIdentifier // OBJECT IDENTIFIER Content asn1.RawValue `asn1:"tag:0,explicit,optional"` // EXPLICIT ANY DEFINED BY contentType OPTIONAL }
Definition here: https://tools.ietf.org/html/rfc2315
type DigestInfo ¶
type DigestInfo struct { Algorithm AlgorithmIdentifier // DigestAlgorithmIdentifier Digest []byte // OCTET STRING }
Definition here: https://tools.ietf.org/html/rfc2315
type MacData ¶
type MacData struct { Mac DigestInfo MacSalt []byte // OCTET STRING Iterations int `asn1:"optional,default:1"` // INTEGER DEFAULT 1 }
Definition here: https://tools.ietf.org/html/rfc7292
type Pfx ¶
type Pfx struct { Version int // {v3(3)}(v3,...), AuthSafe ContentInfo MacData MacData `asn1:"optional"` }
Definition here: https://tools.ietf.org/html/rfc7292
Click to show internal directories.
Click to hide internal directories.