summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-08 09:25:32 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-08 09:30:29 +0200
commitb5b81be35518cd30e2afed0f6dec67c973bb9cfd (patch)
tree761bed627ba6a7bfdae5ad3b511e2e26ea454f8b
parent7aacdf94c221a6f19e988e87b9fe17f9cb284633 (diff)
downloadgnutls-b5b81be35518cd30e2afed0f6dec67c973bb9cfd.tar.gz
certtool: improved error message when public key cannot be figured [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--src/certtool-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/certtool-common.c b/src/certtool-common.c
index 230bb85adc..62403065f1 100644
--- a/src/certtool-common.c
+++ b/src/certtool-common.c
@@ -634,7 +634,7 @@ gnutls_pubkey_t load_public_key_or_import(int mand,
gnutls_pubkey_deinit(pubkey);
pubkey = load_pubkey(0, info);
if (pubkey == NULL && mand) {
- fprintf(stderr, "You must specify --load-privkey\n");
+ fprintf(stderr, "Could not determine the public key for the operation.\nYou must specify --load-privkey or --load-pubkey if missing.\n");
exit(1);
}
}