OpenSSL command line to display EC key data
Roger Dunn <[email protected]>
| Newsgroups | gmane.comp.mozilla.crypto |
|---|---|
| Message-ID | <[email protected]> |
I have an EC key I am trying to extract the private+public key info
I use the command line:
openssl ec -in mykey.key.pem -noout -text
Output is as follows:
read EC key
Private-Key: (256 bit)
priv: 1 (0x1)
pub:
xxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx
ASN1 OID: prime256v1
The private section is not being displayed, only the public.
I've seen many samples using the same command where both private+public key data are displayed... not sure what's up with this.
The key headers are
-----BEGIN EC PRIVATE KEY-----
-----END EC PRIVATE KEY-----
This is an intermediate cert.
--
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto