Golang x509: RSA key missing NULL parameters

if *.p12 not match rfc 3279, how to get tls.Certificate?

// RSA public keys must have a NULL in the parameters. 237 // See RFC 3279, Section 2.3.1. 238 if !bytes.Equal(keyData.Algorithm.Parameters.FullBytes, asn1.NullBytes) { 239 return nil, errors.New(“x509: RSA key missing NULL parameters”) 240 }