diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-08-15 11:53:16 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-08-15 11:53:16 +0200 |
commit | 41bd55ba0d6778a44e883f7c690e850b508274a2 (patch) | |
tree | 607ca769c026c4483396891deb916257f19bebbc | |
parent | e0dacc6293a946da66fe63844f70b5d9d577b4ed (diff) | |
download | gnutls-41bd55ba0d6778a44e883f7c690e850b508274a2.tar.gz |
No need to require the private key to be present when generating a certificate.
-rw-r--r-- | src/certtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |