mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02: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
2 changed files with 10 additions and 0 deletions
|
@ -388,6 +388,11 @@ gpgsm_gencertreq_tty (ctrl_t ctrl, estream_t output_stream)
|
|||
tty_printf (_(" (optional; end with an empty line):\n"));
|
||||
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? */
|
||||
selfsigned = tty_get_answer_is_yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue