Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCertificate ¶ added in v1.20.109
func GetServerPubKey ¶ added in v1.20.109
func GetServerPubKey(pk *ServerPubKey) (*rsa.PublicKey, error)
Types ¶
type P12 ¶ added in v1.20.109
type P12 struct {
Password string
}
func (*P12) ReadCertificate ¶ added in v1.20.109
func (p *P12) ReadCertificate(certFile, keyFile, pkcs12File any) (cert tls.Certificate, err error)
type ServerPubKey ¶ added in v1.20.109
type Tls ¶
type Tls struct { Key string `json:"key" yaml:"key" xml:"key"` //true,false,skip-verify,preferred CaFile string `json:"caFile" yaml:"caFile" xml:"caFile"` CertFile string `json:"certFile" yaml:"certFile" xml:"certFile"` KeyFile string `json:"keyFile" yaml:"keyFile" xml:"keyFile"` }
func (*Tls) GetCredential ¶
Click to show internal directories.
Click to hide internal directories.