Documentation
¶
Index ¶
- func AddToKeystore(driverConfig *config.DriverConfig, alias string, password []byte, ...) error
- func Heartbeat(config *coreconfig.CoreConfig, url string, username string, password string) (bool, error)
- func IsPfxRfc7292(byteCert []byte) (bool, error)
- func ParseURL(config *coreconfig.CoreConfig, url string) (string, string, string, string, string, error)
- func StoreKeystore(driverConfig *config.DriverConfig, trustStorePassword string) ([]byte, error)
- func ValidateCertificate(certPath string, host string) (bool, error)
- func ValidateCertificateBytes(byteCert []byte, host string, selfSignedOk bool) (bool, error)
- func ValidateKeyStore(config *coreconfig.CoreConfig, filename string, pass string) (bool, error)
- func ValidateSendGrid(apiKey string) (bool, error)
- func VerifyCertificate(cert *x509.Certificate, host string, verifyBySystemCertPool bool) (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 Heartbeat ¶
func Heartbeat(config *coreconfig.CoreConfig, url string, username string, password string) (bool, error)
Heartbeat validates the database connection
func IsPfxRfc7292 ¶
IsPfx verfies if this looks like a pfx.
func ParseURL ¶
func ParseURL(config *coreconfig.CoreConfig, url string) (string, string, string, string, string, error)
func StoreKeystore ¶
func StoreKeystore(driverConfig *config.DriverConfig, trustStorePassword string) ([]byte, error)
func ValidateCertificate ¶
ValidateCertificate validates certificate pointed to by the path
func ValidateCertificateBytes ¶
ValidateCertificateBytes validates certificate bytes
func ValidateKeyStore ¶
func ValidateKeyStore(config *coreconfig.CoreConfig, filename string, pass string) (bool, error)
ValidateKeyStore validates the sendgrid API key.
func ValidateSendGrid ¶
ValidateSendGrid validates the sendgrid API key.
func VerifyCertificate ¶
func VerifyCertificate(cert *x509.Certificate, host string, verifyBySystemCertPool bool) (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.