d=`mktemp -d`
cd $d
openssl dsaparam -genkey 2048 -out private.pem
Generating DSA parameters, 2048 bit long prime
This could take some time
.+....+.......+............+.......+....................+..........+.+...........+....................................+.+....+..........+......+.....+..................+.+...+..+........................+++++++++++++++++++++++++++++++++++++++++++++++++++*
...+.......................+........+........+...................+.+.......................+............+..........+..+....+....+..+....................+...............+..............+........+......+..+.........+..+.+.................................+..+..+..............+.+...........+........+........+.......+...+..+..+................+..............+++++++++++++++++++++++++++++++++++++++++++++++++++*
ls -l private.pem
-rw-r--r-- 1 pi pi 2044 May 30 16:40 private.pem
openssl dsa -in private.pem -text -noout
read DSA key
Private-Key: (2048 bit)
priv:
1e:e0:a1:51:7b:e7:be:8c:19:4e:6b:53:48:d8:e5:
35:7d:97:c6:13:96:35:57:16:38:fa:e5:54:d1:40:
dc:59
pub:
6a:4c:80:1f:65:c0:cb:e8:91:c7:2f:2f:ab:7e:4d:
41:5c:2d:7f:6b:fb:9e:92:bd:0d:14:f3:19:ef:bf:
d1:ac:b9:dc:3a:ba:9f:3a:2d:39:33:ba:7b:92:e7:
8f:ea:22:ea:4f:43:b7:9d:0f:ec:26:68:98:42:0b:
9e:28:69:88:69:be:9a:6a:76:7f:f2:e8:26:71:2e:
d3:60:99:31:e6:ab:a2:72:f1:eb:f0:38:5c:f1:7a:
56:e3:2b:d3:fa:0a:3a:27:4d:6d:e3:f6:68:de:dd:
4b:8d:27:11:c8:94:8d:a8:7f:a3:b3:cd:7b:0f:99:
cf:16:d6:e8:9e:d1:34:3c:d2:30:c9:b0:50:c4:78:
b6:8a:97:70:a8:da:f2:3e:50:af:88:ad:7d:6f:b6:
83:ed:43:c2:9f:9d:36:27:31:dc:c7:ba:08:c2:f7:
be:97:e7:06:ca:f3:39:02:cf:24:4f:20:9f:f9:74:
a3:a0:7c:c8:f6:5c:2c:9e:94:79:ee:ab:be:8a:fc:
e2:a1:77:72:9c:b0:3d:52:4c:5b:4a:5a:5f:3a:48:
bc:a7:1e:d7:97:58:e1:20:ba:44:5b:50:51:9e:ac:
b3:31:16:97:0d:76:c2:00:85:49:8e:35:48:27:7c:
02:15:1c:97:68:9b:53:70:f0:df:42:4f:80:0e:ee:
9d
P:
00:de:0b:1d:e9:81:77:5e:2b:48:68:64:0e:4c:82:
2c:fa:41:98:8f:82:78:8c:15:c0:13:f8:ee:4c:57:
4f:df:3d:da:42:6e:8e:89:12:8e:ad:c0:25:c5:c0:
97:77:89:63:63:5f:74:61:31:6d:0e:a8:64:cd:dd:
08:17:35:ed:aa:f7:46:18:b6:d3:7a:36:f6:ba:b3:
ec:67:34:cf:74:26:80:23:cd:df:5e:d6:29:e1:42:
16:39:50:84:3b:8a:19:b5:42:2d:d2:2d:4a:96:d3:
70:b4:64:c7:c9:5a:81:4f:07:37:6a:94:10:ef:3a:
af:6f:b8:bb:21:5e:4f:b3:9d:38:63:07:68:64:40:
8b:aa:be:59:80:da:dd:49:ba:41:a8:b2:46:61:41:
c5:ec:7c:74:6c:77:e8:90:cd:a7:b8:3d:26:0f:4c:
65:28:78:a0:58:db:39:cd:a4:be:08:1b:09:b0:cc:
1b:e0:20:4a:82:f2:2b:20:0a:de:8c:6f:cf:5b:95:
02:8a:ad:bf:83:4f:64:f6:81:6a:ac:e4:36:fb:dc:
57:b4:be:43:46:71:6e:db:89:66:64:04:b9:b2:cb:
cd:15:af:d7:87:ff:1c:57:05:97:34:c5:f1:7e:fb:
bd:ee:8d:d2:b8:11:48:ff:c4:27:6b:b5:fd:39:fd:
dc:69
Q:
00:b8:a4:e1:8c:48:6f:a4:7c:8b:01:a9:b1:12:0e:
4c:8a:c9:54:78:b5:ed:86:13:21:f8:5f:d5:c4:a9:
f6:2f:69
G:
00:cb:ca:0c:04:ae:0b:66:2e:04:82:b4:53:a3:d9:
70:29:10:5e:d4:95:39:2a:ed:98:52:69:5b:ed:a4:
b7:1a:ee:14:c4:76:da:08:3d:80:29:51:76:01:56:
37:f2:78:88:34:cf:73:69:b6:29:ae:d0:cc:8a:88:
ae:02:28:a6:b6:89:cb:8f:34:29:1c:9a:62:8a:70:
09:9f:cc:8b:86:aa:89:ea:ac:9f:f7:79:51:1a:f6:
d7:77:77:e1:0b:c2:7f:f3:fe:da:cc:82:c8:e9:98:
0c:57:c2:dc:fd:3a:67:f2:6d:0d:81:3d:28:5d:c7:
12:71:10:11:81:c7:39:b6:56:ff:ff:75:2d:f2:9a:
6c:ab:4e:cd:fc:68:b5:36:24:5b:95:8d:95:b3:91:
ee:e2:48:5d:7c:77:b1:1e:ca:06:fb:37:1e:f1:bf:
97:59:e1:b8:91:1a:b2:75:49:39:45:2e:56:5c:19:
d3:7e:21:eb:a7:dd:42:b8:01:d6:9d:b7:98:6a:6a:
3f:64:11:1f:a5:cd:e6:b6:ec:2c:70:2e:65:51:2d:
d2:9b:68:12:89:1a:aa:bd:4b:a7:49:88:39:43:bb:
66:43:ca:3c:61:db:03:e1:66:ee:04:fd:eb:ba:7b:
16:1d:4c:b9:b1:6e:7b:a7:9e:4f:d0:69:0d:91:fe:
eb:67
Last active
May 30, 2018 15:04
-
-
Save rrottmann/adc77e6b7abdaa3f1dd2d7e06e7b057d to your computer and use it in GitHub Desktop.
Generate DSA key with openssl and inspect parameters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment