Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateX509KeyPairByBase64Str ¶
func CreateX509KeyPairByBase64Str(certBase64, keyBase64 string) (*tls.Certificate, error)
func GetCertDomainInfo ¶
func GetCertDomainInfo(cert *tls.Certificate) (*[]CertInfo, error)
Types ¶
type SSLCertficate ¶
type SSLCertficate struct { Key string `json:"Key"` Enable bool `json:"Enable"` Remark string `json:"Remark"` //备注 CertBase64 string `json:"CertBase64"` KeyBase64 string `json:"KeyBase64"` AddTime string `json:"AddTime"` //添加时间 CertsInfo *[]CertInfo `json:"-"` //--------------------- Certificate *tls.Certificate `json:"-"` }
func (*SSLCertficate) GetFirstDomain ¶
func (s *SSLCertficate) GetFirstDomain() string
GetOnlyDomain 返回证书第一条域名
func (*SSLCertficate) Init ¶
func (s *SSLCertficate) Init() error
Click to show internal directories.
Click to hide internal directories.