]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
certtool: default to yes on signing certificates for CAs
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 26 Jul 2019 07:57:29 +0000 (09:57 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 26 Jul 2019 07:58:17 +0000 (09:58 +0200)
When asking the questions for CA certificate generation, default
to yes to signing certificates. This is because that's the most
common type of CAs generated and defaulting to yes eliminates
the need for restart on error.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
src/certtool-cfg.c

index 8e8b8b59c8a0d42bcda3b6d7bdedea6f7af67fd5..75e1e57c54fe530ccd0cf932cd10d0ad87ff0e08 100644 (file)
@@ -2550,8 +2550,8 @@ int get_cert_sign_status(void)
        } else {
                return
                    read_yesno
-                   ("Will the certificate be used to sign other certificates? (y/N): ",
-                    0);
+                   ("Will the certificate be used to sign other certificates? (Y/n): ",
+                    1);
        }
 }