From 3ad3a70d4d2a3e4504890456d8bbd8bd79395e57 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 12 Nov 2012 18:03:17 +0100 Subject: [PATCH] Added some help on failure. --- src/pkcs11.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pkcs11.c b/src/pkcs11.c index 91238ddd3..7aa82d958 100644 --- a/src/pkcs11.c +++ b/src/pkcs11.c @@ -573,6 +573,10 @@ pkcs11_generate (FILE * outfile, const char *url, gnutls_pk_algorithm_t pk, { fprintf (stderr, "Error in %s:%d: %s\n", __func__, __LINE__, gnutls_strerror (ret)); + if (login == 0) + fprintf(stderr, "Note that --login was not specified and it may be required for generation.\n"); + else if (bits != 1024) + fprintf (stderr, "Note that several smart cards do not support arbitrary size keys.\nTry --bits 1024 or 2048.\n"); exit(1); } -- 2.11.4.GIT