Werner Koch
7089dcc540
gpg: Fix key generation with only an email part.
...
* g10/keygen.c (proc_parameter_file): Special case the email only
case.
--
Using a parameter file like
%ask-passphrase
key-type: RSA
key-length: 2048
key-usage: sign
subkey-type: RSA
subkey-length: 2048
subkey-usage: encrypt
name-email: foo@example.org
with "gpg --gen-key --patch" the result was this key
pub rsa2048 2017-09-11 [SC]
63A8C1BA12CC289A0E8072C971C7F8D4A18CE0BE
uid [ultimate] <foo@example.org>
sub rsa2048 2017-09-11 [E]
At least the the extra leading space the left angle bracket is wrong.
Further some mail providers reject keys which consist of more than
just a plain mail address. Using just a mail address is anyway the
new new suggested content for a user id. With this patch the key
will be
pub rsa2048 2017-09-11 [SC]
B302343C20EA6DECDB6A155135352F2520397080
uid [ultimate] foo@example.org
sub rsa2048 2017-09-11 [E]
Signed-off-by: Werner Koch <wk@gnupg.org>
2017-09-11 11:29:13 +02:00
..
2017-05-11 18:12:37 +02:00
2017-05-10 11:13:12 +09:00
2017-07-20 18:13:40 +02:00
2017-07-31 11:20:47 +02:00
2017-07-24 17:18:42 +02:00
2017-08-08 11:43:22 +02:00
2017-07-24 20:09:52 +02:00
2017-07-21 11:22:38 +09:00
2016-11-02 12:53:58 +01:00
2017-03-07 20:25:54 +09:00
2017-04-11 13:52:19 +09:00
2017-03-07 20:25:54 +09:00
2017-05-30 14:30:43 +02:00
2017-08-01 19:08:16 +02:00
2017-07-28 17:46:43 +02:00
2017-03-07 20:25:54 +09:00
2016-11-05 12:02:19 +01:00
2017-03-31 20:07:20 +02:00
2016-12-20 10:22:05 +01:00
2017-03-07 20:25:54 +09:00
2017-08-01 19:08:16 +02:00
2017-03-07 20:25:54 +09:00
2016-11-05 12:02:19 +01:00
2017-08-01 19:08:16 +02:00
2017-03-07 20:25:54 +09:00
2017-07-21 17:49:10 +02:00
2017-08-04 22:46:40 +02:00
2015-02-04 09:15:34 +01:00
2017-08-23 16:45:20 +02:00
2017-03-31 21:27:16 +02:00
2015-02-04 09:15:34 +01:00
2017-07-27 11:38:57 +02:00
2017-03-07 20:25:54 +09:00
2016-11-05 12:02:19 +01:00
2017-06-21 15:51:10 +02:00
2017-03-07 20:25:54 +09:00
2017-08-04 17:09:17 +02:00
2017-03-29 12:08:31 +02:00
2017-07-27 11:38:57 +02:00
2017-07-27 11:38:57 +02:00
2017-03-31 20:08:23 +02:00
2017-08-04 22:06:18 +02:00
2017-08-09 18:37:20 +02:00
2017-07-27 11:38:57 +02:00
2017-09-11 11:29:13 +02:00
2017-07-20 18:13:40 +02:00
2017-07-27 11:38:57 +02:00
2017-05-08 14:33:11 +02:00
2017-03-31 20:07:20 +02:00
2017-07-13 18:29:01 +02:00
2017-07-24 21:10:58 +02:00
2017-08-01 19:08:16 +02:00
2017-07-27 16:22:36 +02:00
2017-07-10 18:09:42 +02:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-06-07 16:53:32 +02:00
2017-08-01 19:08:16 +02:00
2017-08-08 11:43:22 +02:00
2017-07-20 18:13:40 +02:00
2017-07-13 18:29:01 +02:00
2017-03-31 20:07:20 +02:00
2017-03-07 20:25:54 +09:00
2016-11-05 12:02:19 +01:00
2017-07-28 17:46:43 +02:00
2017-03-07 20:25:54 +09:00
2016-11-05 12:02:19 +01:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-08-01 08:41:47 +02:00
2017-01-23 19:16:55 +01:00
2017-08-02 16:14:48 +02:00
2017-02-21 13:11:46 -05:00
2016-11-05 12:02:19 +01:00
2017-03-07 20:32:09 +09:00
2017-03-07 20:25:54 +09:00
2017-04-28 10:06:33 +09:00
2017-08-24 20:26:19 +02:00
2017-08-01 19:08:16 +02:00
2017-05-22 09:27:36 +09:00
2017-03-30 16:01:52 +02:00
2015-11-17 14:53:03 +01:00
2015-09-02 15:08:57 +02:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2016-03-08 14:08:49 +01:00
2017-05-10 11:13:03 +09:00
2017-03-31 20:07:20 +02:00
2017-04-28 10:06:33 +09:00
2017-03-31 20:07:20 +02:00
2017-03-31 20:07:20 +02:00
2017-04-24 14:14:05 +02:00
2017-03-07 20:25:54 +09:00
2017-07-10 18:09:42 +02:00
2016-12-06 12:16:56 +01:00
2017-03-31 20:07:20 +02:00
2017-08-24 22:10:44 +02:00
2017-03-31 20:07:20 +02:00
2017-04-28 10:06:33 +09:00
2016-11-05 12:02:19 +01:00