OpenSSL "pkeyparam -text" - Print EC Parameters in Text

Q

How to print EC key generation parameters in text format using OpenSSL "pkeyparam" command?

✍: FYIcenter.com

A

If you want to see contents of a EC key generation parameter file in text format, you can use the OpenSSL "pkeyparam -text" command as shown below:

C:\Users\fyicenter>\local\openssl\openssl.exe

OpenSSL> pkeyparam -in my_ec.prm -text -noout
ECDSA-Parameters: (112 bit)
Field Type: prime-field
Prime:
    00:db:7c:2a:bf:62:e3:5e:66:80:76:be:ad:20:8b
A:
    00:db:7c:2a:bf:62:e3:5e:66:80:76:be:ad:20:88
B:
    65:9e:f8:ba:04:39:16:ee:de:89:11:70:2b:22
Generator (uncompressed):
    04:09:48:72:39:99:5a:5e:e7:6b:55:f9:c2:f0:98:
    a8:9c:e5:af:87:24:c0:a2:3e:0e:0f:f7:75:00
Order:
    00:db:7c:2a:bf:62:e3:5e:76:28:df:ac:65:61:c5
Cofactor:  1 (0x1)
Seed:
    00:f5:0b:02:8e:4d:69:6e:67:68:75:61:51:75:29:
    04:72:78:3f:b1

Options used in this command are:

  • "-in my_ec.prm" - Read the EC key generation parameter file.
  • "-text" - Print out parameter information in text format.
  • "-noout" - Do not include parameters itself in the output.

 

OpenSSL "genpkey -paramfile" - Generate EC Key

OpenSSL "genpkey -genparam" - Generate EC Parameters

OpenSSL "genpkey" Command for EC Keys

⇑⇑ OpenSSL Tutorials

2017-08-13, 1898🔥, 0💬