Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd /tmp
- tar xvzf ~/Downloads/openssl-1.0.1g.tar.gz
- else if (!strcmp (*args, "-noiter"))
- iter = 1;
- else if (!strcmp (*args, "-nocrypt"))
- nocrypt = 1;
- else if (!strcmp (*args, "-noiter"))
- iter = 1;
- else if (!strcmp (*args, "-iter"))
- {
- if (!args[1]) goto bad;
- iter = atoi(*(++args));
- if (iter <= 0) goto bad;
- }
- else if (!strcmp (*args, "-nocrypt"))
- nocrypt = 1;
- cd /tmp/openssl-1.0.1g
- ./config --prefix=$HOME/local
- make
- make test
- make install
- $HOME/local/bin/openssl genrsa -out rsaraw.pem 2048
- $HOME/local/bin/openssl pkcs8 -topk8 -v2 aes128 -iter 1000000 -in rsaraw.pem -out rsapk8.pem
- openssl asn1parse -i -in rsapk8.pem
- 0:d=0 hl=4 l=1312 cons: SEQUENCE
- 4:d=1 hl=2 l= 74 cons: SEQUENCE
- 6:d=2 hl=2 l= 9 prim: OBJECT :PBES2
- 17:d=2 hl=2 l= 61 cons: SEQUENCE
- 19:d=3 hl=2 l= 28 cons: SEQUENCE
- 21:d=4 hl=2 l= 9 prim: OBJECT :PBKDF2
- 32:d=4 hl=2 l= 15 cons: SEQUENCE
- 34:d=5 hl=2 l= 8 prim: OCTET STRING [HEX DUMP]:A4E21F4F210DEB6F
- 44:d=5 hl=2 l= 3 prim: INTEGER :0F4240
- 49:d=3 hl=2 l= 29 cons: SEQUENCE
- 51:d=4 hl=2 l= 9 prim: OBJECT :aes-128-cbc
- 62:d=4 hl=2 l= 16 prim: OCTET STRING [HEX DUMP]:DAA184B3F6CC303B6A40A131E5C8C451
- 80:d=1 hl=4 l=1232 prim: OCTET STRING [HEX DUMP]:2C15CF37D5ACC537AA92B
- (...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement