I am not able to get the root CA of the certificate chain in the status of the CertificateRequest CR. The length of the root CA is 0 here.
I tested this with order types ssl_securesite_flex and private_ssl_flex, and the check in
|
return cert.CheckSignatureFrom(cert) == nil |
returned an
https://pkg.go.dev/crypto/x509#InsecureAlgorithmError for the root CA (DigiCert G1).
My proposal would be to use a different check:
bytes.Equal(crt.RawIssuer, crt.RawSubject).