Re: OpenSSL command line to display EC key data

Hubert Kario <[email protected]>
Newsgroups gmane.comp.mozilla.crypto
Message-ID <[email protected]>
On Wednesday, 16 August 2017 20:41:58 CEST Roger Dunn wrote:
> 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

Is that pub value similar to:

  04
  6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296
  4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5

then 1 *is* your private key value (I don't think I have to explain how bad 
that is...)


-- 
Regards,
Hubert Kario
Senior Quality Engineer, QE BaseOS Security team
Web: www.cz.redhat.com
Red Hat Czech s.r.o., Purkyňova 115, 612 00  Brno, Czech Republic

-- 
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABCgAGBQJZlwE0AAoJEJKo0bgB0vX1odkP/2OvUpOJqGQw8R5SnntJMheR
j6rdvLrfu2bzBDd5Nb8G2EmEjIf8Mfu7Z4VraiePd6EGH9tEpxIxlL2bbihPvrC8
mw5brZq+25o4wnrnt+7S/PAQ2zx7mOUa8KKzAGH2CzBYd6xyt+7sO9cEWDt9KbxM
Z51vycM6hYkawfZluzQYITyFJ4OTzSZmofivU/THjy6y4p1IZXYVfNczCu//VTqS
lC6bfV6m9Qkny0YieS+p3Sl3Q3Nfsc+wDqV4J5MM5DBXqSQFWypTWmIscWKorUMt
nta9X0yUMvGiUo4QBrvetThYEm+ZNdUb5mfThV0Se/m3UqU052r9lDSFJ3kaxTnL
OelcFmWWjD5ZrS1KYUpv/miZQguo2564bOp/lns+rtKL0epjIjIVbI98MLMDP8Uo
LDDpjlA56Bl/fApYEtrOg0bvBtRmUD3LzDEsZAYc1lCBOqF8ZhAZpmbgGmL5HV0t
tnSqFrMy7iOKkC7l/CtRxZ/OnXSBrePfYYovon4mBmH1DkJeXDDH0GixDB2UMISl
a46sW3uhEmjVnPyRzbuVXVuhdBDcDvJ4/+VbUAXjTaWwvTmx/3maPG0U9/tYjXGf
HkSzdjciFF190wvG+uztz6dl1wXBt7fi+PlAHGEmXvtuSxUG0fYymIqDG1a124IC
M4dhxopXoq8LrCdGw5BZ
=L+ni
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.