]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
No need to require the private key to be present when generating a certificate.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 15 Aug 2012 09:53:16 +0000 (11:53 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 15 Aug 2012 09:53:16 +0000 (11:53 +0200)
src/certtool.c

index 4f664faab69509af344be1fd29f390d82a87ef11..eab00f41f31f89d9998a0a6b98b383a24e978f00 100644 (file)
@@ -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)