mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-21 10:09:57 +01:00
gpgsm: Allow to add extensions at the --gen-key prompt.
* sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Add a prompt for extensions. -- An example for an extension would be extKeyUsage for authentication: 2.5.29.37 n 301406082B0601050507030206082B06010505070301
This commit is contained in:
parent
984a0c6982
commit
571a768ac6
@ -388,6 +388,11 @@ gpgsm_gencertreq_tty (ctrl_t ctrl, estream_t output_stream)
|
|||||||
tty_printf (_(" (optional; end with an empty line):\n"));
|
tty_printf (_(" (optional; end with an empty line):\n"));
|
||||||
ask_mb_lines (&mb_uri, "Name-URI: ");
|
ask_mb_lines (&mb_uri, "Name-URI: ");
|
||||||
|
|
||||||
|
/* Extensions */
|
||||||
|
tty_printf (_("Enter extensions"));
|
||||||
|
tty_printf (_(" (optional; end with an empty line):\n"));
|
||||||
|
ask_mb_lines (&mb_uri, "Extension: ");
|
||||||
|
|
||||||
|
|
||||||
/* Want a self-signed certificate? */
|
/* Want a self-signed certificate? */
|
||||||
selfsigned = tty_get_answer_is_yes
|
selfsigned = tty_get_answer_is_yes
|
||||||
|
@ -49,6 +49,11 @@
|
|||||||
Signing-Key: 68A638998DFABAC510EA645CE34F9686B2EDF7EA
|
Signing-Key: 68A638998DFABAC510EA645CE34F9686B2EDF7EA
|
||||||
%commit
|
%commit
|
||||||
|
|
||||||
|
Commnn extensions:
|
||||||
|
ExtKeyUsage: clientAuth (suggested) serverAuth (suggested)
|
||||||
|
-> 2.5.29.37 n 301406082B0601050507030206082B06010505070301
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user