Documentation ¶
Index ¶
- Constants
- Variables
- func CertificatesEncodeToPem(certificates []*x509.Certificate) (cert, caBundle, fullChain []byte, err error)
- func CheckTXTRecord(domain, compareRecord string) bool
- func CreateCertificateRequest(template *x509.CertificateRequest, priv interface{}) (csr []byte, err error)
- func CreateCertificateRequestByDomain(domains []string, priv interface{}) (csr []byte, err error)
- func GetRecordName(domain string) string
- func GetSubDomain(domain string) string
- func NewEcdsaSinger() *ecdsa.PrivateKey
- func ParseEC(pemData []byte) (*ecdsa.PrivateKey, error)
- func ParsePem(pemData []byte) (*pem.Block, error)
- func ReadECPrivateKey(privKeyPath string) (*ecdsa.PrivateKey, error)
Constants ¶
View Source
const (
DomainPrefix = "_acme-challenge"
)
Variables ¶
Functions ¶
func CertificatesEncodeToPem ¶
func CertificatesEncodeToPem(certificates []*x509.Certificate) (cert, caBundle, fullChain []byte, err error)
func CheckTXTRecord ¶
CheckTXTRecord 检测dns-01 challenge 的 TXT 记录, 是否和 compareRecord 一致
func CreateCertificateRequest ¶
func CreateCertificateRequest(template *x509.CertificateRequest, priv interface{}) (csr []byte, err error)
CreateCertificateRequest 创建csr
func CreateCertificateRequestByDomain ¶
CreateCertificateRequestByDomain 通过域名创建csr
func GetRecordName ¶
GetRecordName 根据domain, 获取需要设置TXT记录的字段
func NewEcdsaSinger ¶
func NewEcdsaSinger() *ecdsa.PrivateKey
func ReadECPrivateKey ¶
func ReadECPrivateKey(privKeyPath string) (*ecdsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.