1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19: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:
Werner Koch 2024-03-27 12:12:52 +01:00
parent 984a0c6982
commit 571a768ac6
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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
*/ */