What version of Go are you using (go version)?
$ go version
go version go1.14 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GOARCH=amd64
set GOOS=windows
What did you do?
I converted an RSA private key to PEM and tried to load it with crypto/x509.
I manually verified the PEM is valid with Python.
https://play.golang.org/p/8lePKysTb-1
What did you expect to see?
To be able to parse the PEM & get the RSA private key contained inside
What did you see instead?
An error: "asn1: structure error: integer too large"
Probably related to #3161
What version of Go are you using (
go version)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env)?go envOutputWhat did you do?
I converted an RSA private key to PEM and tried to load it with crypto/x509.
I manually verified the PEM is valid with Python.
https://play.golang.org/p/8lePKysTb-1
What did you expect to see?
To be able to parse the PEM & get the RSA private key contained inside
What did you see instead?
An error: "asn1: structure error: integer too large"
Probably related to #3161