[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.5.7 gnutls_x509_privkey_generate() returns GNUTLS_E_INVALID_REQUES

From: Sam Varshavchik
Subject: Re: 2.5.7 gnutls_x509_privkey_generate() returns GNUTLS_E_INVALID_REQUEST
Date: Wed, 17 Sep 2008 07:01:38 -0400

Simon Josefsson writes:

Sam Varshavchik <address@hidden> writes:

The following short test program runs when compiled against
2.4.0. Compiling it against 2.5.7 causes it to report a
GNUTLS_E_INVALID_REQUEST from the second call to

I can't reproduce this, adding this somewhere:

  printf ("vers %s %s\n", LIBGNUTLS_VERSION, gnutls_check_version (NULL));

Does print 2.5.7 for both, confirming that I really use 2.5.7.  So it


seems something else is required to reproduce this.  Can you try to
debug gnutls_x509_privkey_generate and see what happens?

Does 'certtool -p' trigger the same problem for you?

Yes, certtool also bombs out.

$ certtool -p
Generating a 2048 bit RSA private key…
certtool: privkey_generate: The request is invalid.

I'm going to debug this. Debugging code compiled with -O is a pain. I'll need to recompile the library without optimization. The only thing I have to add is that this is on x86_64, which may or may not be a factor.

Attachment: pgpYIN9DmfjP3.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]