Reverts ACME issuer from forming a chain bundle and populating the
ca.crt Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
parent
528305b5ed
commit
1678d0833e
@ -206,20 +206,12 @@ func (a *ACME) Sign(ctx context.Context, cr *v1.CertificateRequest, issuer v1.Ge
|
||||
return nil, a.acmeClientV.Orders(order.Namespace).Delete(ctx, order.Name, metav1.DeleteOptions{})
|
||||
}
|
||||
|
||||
bundle, err := pki.ParseSingleCertificateChainPEM(order.Status.Certificate)
|
||||
if err != nil {
|
||||
log.Error(err, "failed to successfully build a certificate chain from data on Order resource.")
|
||||
return nil, a.acmeClientV.Orders(order.Namespace).Delete(ctx, order.Name, metav1.DeleteOptions{})
|
||||
}
|
||||
|
||||
log.V(logf.InfoLevel).Info("certificate issued")
|
||||
|
||||
// Order valid, return cert. The calling controller will update with ready if its happy with the cert.
|
||||
return &issuerpkg.IssueResponse{
|
||||
Certificate: bundle.ChainPEM,
|
||||
CA: bundle.CAPEM,
|
||||
Certificate: order.Status.Certificate,
|
||||
}, nil
|
||||
|
||||
}
|
||||
|
||||
// Build order. If we error here it is a terminating failure.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user