I have a private raw key of **myetherwallet** with a **passphrase** "testwallet", now I am trying to convert it to a PEM format using OpenSSL following this answer.

```
echo "a140bd507a57360e2fa503298c035854f0dcb248bedabbe7a14db3920aaacf57" | xxd -r -p - | openssl ec -inform der -pubin -noout -passin pass:testwallet -text

```

But this error appears:

```
read EC key
unable to load Key
140084694296480:error:0D06B08E:asn1 encoding routines:ASN1_D2I_READ_BIO:not enough data:a_d2i_fp.c:247:

```

**UPDATE:**
I don't have the public key, instead I want to generate it so later I can also generate the Ethereum address corresponds..