diff --git a/src/crypto/x509/x509.go b/src/crypto/x509/x509.go index 9fbb97c5d6..b8c4b720cc 100644 --- a/src/crypto/x509/x509.go +++ b/src/crypto/x509/x509.go @@ -156,7 +156,6 @@ func MarshalPKIXPublicKey(pub any) ([]byte, error) { // These structures reflect the ASN.1 structure of X.509 certificates.: type certificate struct { - Raw asn1.RawContent TBSCertificate tbsCertificate SignatureAlgorithm pkix.AlgorithmIdentifier SignatureValue asn1.BitString @@ -1603,7 +1602,6 @@ func CreateCertificate(rand io.Reader, template, parent *Certificate, pub, priv } signedCert, err := asn1.Marshal(certificate{ - nil, c, signatureAlgorithm, asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},