mirror of
https://github.com/usual2970/certimate.git
synced 2025-07-20 18:07:59 +00:00
feat: new ca provider: custom acme ca
This commit is contained in:
@@ -66,14 +66,14 @@ func (n *applyNode) Process(ctx context.Context) error {
|
||||
}
|
||||
|
||||
// 解析证书并生成实体
|
||||
certX509, err := certutil.ParseCertificateFromPEM(applyResult.CertificateFullChain)
|
||||
certX509, err := certutil.ParseCertificateFromPEM(applyResult.FullChainCertificate)
|
||||
if err != nil {
|
||||
n.logger.Warn("failed to parse certificate, may be the CA responded error")
|
||||
return err
|
||||
}
|
||||
certificate := &domain.Certificate{
|
||||
Source: domain.CertificateSourceTypeWorkflow,
|
||||
Certificate: applyResult.CertificateFullChain,
|
||||
Certificate: applyResult.FullChainCertificate,
|
||||
PrivateKey: applyResult.PrivateKey,
|
||||
IssuerCertificate: applyResult.IssuerCertificate,
|
||||
ACMEAccountUrl: applyResult.ACMEAccountUrl,
|
||||
|
Reference in New Issue
Block a user