Created
September 26, 2021 17:36
-
-
Save tarcieri/7e3ff5582fa26708e7bd7dc2b419c2bc to your computer and use it in GitHub Desktop.
openssl SEC1/RFC5915 private keys
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ openssl version | |
OpenSSL 1.1.1k 25 Mar 2021 | |
$ openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -pkeyopt ec_param_enc:named_curve -out p256.pem | |
$ openssl asn1parse -in p256.pem | |
0:d=0 hl=3 l= 135 cons: SEQUENCE | |
3:d=1 hl=2 l= 1 prim: INTEGER :00 | |
6:d=1 hl=2 l= 19 cons: SEQUENCE | |
8:d=2 hl=2 l= 7 prim: OBJECT :id-ecPublicKey | |
17:d=2 hl=2 l= 8 prim: OBJECT :prime256v1 | |
27:d=1 hl=2 l= 109 prim: OCTET STRING [HEX DUMP]:306B02010104208225980620669F554FB548DA7AEA8AD04307E06F4F6E27BD75D96FC069A474B3A14403420004C48CA8CF3F38BA757E0D7FB2D961C3A1914A5783DE0748BE4024E3052AA804C4232BEB7AEB6E3503F487CB5F50EBDE03AF002E0318CF2F897BA983A74B016AA3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment