The signature of the function in the x509 package is "func (c * Certificate) CheckSignatureFrom (parent * Certificate) error". When c is an intermediate CA certificate and the same intermediate CA certificate is passed to the parent, the function does not report any errors; When c is a root CA certificate and parent passes in an intermediate CA certificate, the function does not report any errors; When c is any intermediate certificate and parent passes in any root certificate that is not issuing the c certificate, the function does not report any errors.
The signature of the function in the x509 package is "func (c * Certificate) CheckSignatureFrom (parent * Certificate) error". When c is an intermediate CA certificate and the same intermediate CA certificate is passed to the parent, the function does not report any errors; When c is a root CA certificate and parent passes in an intermediate CA certificate, the function does not report any errors; When c is any intermediate certificate and parent passes in any root certificate that is not issuing the c certificate, the function does not report any errors.