Skip to content

Import/Export key #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
richardschneider opened this issue Nov 28, 2017 · 1 comment
Closed

Import/Export key #14

richardschneider opened this issue Nov 28, 2017 · 1 comment

Comments

@richardschneider
Copy link
Owner

richardschneider commented Nov 28, 2017

Allow a key to be exported, with a password, so that other keystores #2 can use it.

Allow importing of a key.

Keys are in encrypted PKCS 8 PEM format.

@richardschneider
Copy link
Owner Author

An exported key exported-key.pem.txt

openssl asn1parse -in exported-key.pem -inform PEM

    0:d=0  hl=4 l=1336 cons: SEQUENCE
    4:d=1  hl=2 l=  98 cons: SEQUENCE
    6:d=2  hl=2 l=   9 prim: OBJECT            :PBES2
   17:d=2  hl=2 l=  85 cons: SEQUENCE
   19:d=3  hl=2 l=  52 cons: SEQUENCE
   21:d=4  hl=2 l=   9 prim: OBJECT            :PBKDF2
   32:d=4  hl=2 l=  39 cons: SEQUENCE
   34:d=5  hl=2 l=  16 prim: OCTET STRING      [HEX DUMP]:0BA33BC13D14B728836E33E3ACAFA784
   52:d=5  hl=2 l=   2 prim: INTEGER           :2710
   56:d=5  hl=2 l=   1 prim: INTEGER           :20
   59:d=5  hl=2 l=  12 cons: SEQUENCE
   61:d=6  hl=2 l=   8 prim: OBJECT            :hmacWithSHA512
   71:d=6  hl=2 l=   0 prim: NULL
   73:d=3  hl=2 l=  29 cons: SEQUENCE
   75:d=4  hl=2 l=   9 prim: OBJECT            :aes-256-cbc
   86:d=4  hl=2 l=  16 prim: OCTET STRING      [HEX DUMP]:2A6FCC60C0B3AEEF26D71D9EDA1C464A
  104:d=1  hl=4 l=1232 prim: OCTET STRING      [HEX DUMP]:1A5CD ...

richardschneider added a commit that referenced this issue Nov 28, 2017
richardschneider added a commit that referenced this issue Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant