We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 621772b commit c18f8f0Copy full SHA for c18f8f0
internal/cert/auto_cert.go
@@ -75,14 +75,17 @@ func autoCert(certModel *model.Cert) {
75
ChallengeMethod: certModel.ChallengeMethod,
76
DNSCredentialID: certModel.DnsCredentialID,
77
KeyType: certModel.GetKeyType(),
78
- Resource: &model.CertificateResource{
+ NotBefore: cert.NotBefore,
79
+ }
80
+
81
+ if certModel.Resource != nil {
82
+ payload.Resource = &model.CertificateResource{
83
Resource: certModel.Resource.Resource,
84
PrivateKey: certModel.Resource.PrivateKey,
85
Certificate: certModel.Resource.Certificate,
86
IssuerCertificate: certModel.Resource.IssuerCertificate,
87
CSR: certModel.Resource.CSR,
- },
- NotBefore: cert.NotBefore,
88
89
}
90
91
// errChan will be closed inside IssueCert
0 commit comments