[go-nuts] Re: x509.ParseECPrivateKey cannot parse ECDSA (256-bit curve) keys generated using openssl ecparams

2018-03-12 Thread me
I wanted to say that this is the correct answer and helped me a lot. On Wednesday, April 27, 2016 at 12:05:56 PM UTC+10, as wrote: > > Openssl is generating a koblitz curve. Golang supports the standard FIPS > curves. Try replacing secp256k1 with prime256v1. -- You received this message because

[go-nuts] Re: x509.ParseECPrivateKey cannot parse ECDSA (256-bit curve) keys generated using openssl ecparams

2017-03-22 Thread adam . woodbeck
Hi Megha, Generate the key in DER format instead of PEM. openssl ecparam -genkey -name secp384r1 -outform der -noout -out key.der You can then read in the file using ioutil.ReadFile() for instance, and pass the byte slice to x509.ParseECPrivateKey(). Adam On Tuesday, April 26, 2016 at 5:07:15