From: Nikos Mavrogiannopoulos Date: Wed, 15 Aug 2012 09:53:16 +0000 (+0200) Subject: No need to require the private key to be present when generating a certificate. X-Git-Tag: gnutls_3_1_0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41bd55ba0d6778a44e883f7c690e850b508274a2;p=thirdparty%2Fgnutls.git No need to require the private key to be present when generating a certificate. --- diff --git a/src/certtool.c b/src/certtool.c index 4f664faab6..eab00f41f3 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -273,8 +273,8 @@ generate_certificate (gnutls_privkey_t * ret_key, if (crq == NULL) { - key = load_private_key (1, cinfo); - + key = load_private_key (0, cinfo); + pubkey = load_public_key_or_import (1, key, cinfo); if (!batch)