Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238373 - net-libs/gnutls-2.5.4 does not work ; private key generation (even with certtool ) fails with 'the request is invalid'
Summary: net-libs/gnutls-2.5.4 does not work ; private key generation (even with certt...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL: http://lists.gnu.org/archive/html/gnu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-22 10:29 UTC by Dries Kimpe
Modified: 2008-11-05 14:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dries Kimpe 2008-09-22 10:29:19 UTC
net-libs/gnutls-2.5.4 compiles and installs fine but doesn't work reliably.

Certain functions (such as gnutls_x509_privkey_generate) fail with:
The request is invalid.

Even the bundled command line tool certtool shows the same problem:

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


Tried: recompiling gcrypt, gnutls: no solution
Tried: downgrading to gnutls: solved problem



Reproducible: Always

Steps to Reproduce:
1. install gnutls-2.5.4
2. run certtool -p 


Actual Results:  
> certtool -p 
Generating a 2048 bit RSA private key...
certtool: privkey_generate: The request is invalid.

Expected Results:  
private key

 ldd $(which certtool)
	linux-gate.so.1 =>  (0xffffe000)
	libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x40029000)
	libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x400bf000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x40125000)
	libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x4012a000)
	libreadline.so.5 => /lib/libreadline.so.5 (0x48ea9000)
	libc.so.6 => /lib/libc.so.6 (0x49529000)
	libz.so.1 => /lib/libz.so.1 (0x491a0000)
	libncurses.so.5 => /lib/libncurses.so.5 (0x49d0e000)
	/lib/ld-linux.so.2 (0x48b59000)
	libdl.so.2 => /lib/libdl.so.2 (0x4919a000)

libgcrypt version: 1.4.1
libgpg-error: 1.6
libtasn1: 1.4


Portage 2.2_rc9 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-Genuine_Intel-R-_CPU_U2500_@_1.20GHz-with-glibc2.0
Timestamp of tree: Mon, 22 Sep 2008 08:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r9, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -msse3 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -msse3 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.first-world.info/ "
LANG="nl_BE.UTF-8"
LC_ALL="nl_BE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="nl en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/voip /usr/portage/local/layman/sunrise /usr/portage/local/layman/springlobby /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi additions aiglx aim aio alsa amr apache2 applet archive asf async audacious automount bacula-clientonly bacula-console bacula-nodir bacula-nosd bash-completion berkdb binary-drivers binfilter bluetooth branding buffysize bzip2 cairo cddb cdio cdparanoia cdr cgns chipcard chipcard2 cli client-only cracklib crypt cscope cups curl dbus dell device-mapper dhcp dia disk-partition divx djvu dmx dri dts dv dvd dvdr dvdread dvi effects emboss emerald enblend enca encode enscript evo exif extrafilters extras fam fbcon fbdev fbsplash ffmpeg flac fontconfig foomaticdb fortran ftp fuse gd gdbm gif gimp gimpprint glitz gmail gmedia gnome gnutls gpgme gphoto2 gpm gps graphviz gs gstreamer gtk gtk2 hal hddtemp hdri howl hvm hybrid i8x0 iconv idea ieee1394 ilbc imap imlib insecure-patches insecure-savers ipod iptc ipw3945 irda isdnlog jabber jbig jingle jpeg jpeg2k kdeenablefinal kdehiddenvisibility kqemu lame laptop latex lcms ldap libnotify libsamplerate logrotate logwatch lvm lvm2 lzo mad maildir maya-shaderlibrary md5sum metis midi mikmod mjpeg mmap mmx mmxext mode-owner mp2 mp3 mpeg mplayer mudflap nat nautilus ncurses networkmanager new-login nfs nls nntp nptl nptlonly nsplugin nxclient objc offensive ogg openct openexr opengl openmp ophsmall pager pam pango paste64 patch pch pcmcia pcre pcsc-lite pda pdf perl plotutils plugin plugins pmount png pop postscript ppds pppd pygrub python qt3 qt3support qt4 quicktime rar raw readline real realmedia reflection rle rtc samba scanner screen sdl sensord session sftp sidebar sift silvercity slp smartcard smime smp sound speex spell spl sqlite srt sse sse-filters sse2 ssl startup-notification staticsocket subversion suexec svg sysfs t1lib tcpd tetex theora threads tiff trayicon truetype unicode usb v4l v4l2 vcd vim vim-syntax vim-with-x vorbis wavpack webdav win32codecs wma wmf wmp x264 x86 xcb xcomposite xforms xine xinerama xml xorg xpm xscreensaver xsl xulrunner xv xvid xvmc zlib zrtp" ALSA_CARDS="emu10k1x hda-intel usb-audio via82xx via82xx-modem intel8x0 intel8x0m loopback" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2 canon spca50x konica" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl en" USERLAND="GNU" VIDEO_CARDS="vesa vga intel i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Black (RETIRED) gentoo-dev 2008-11-03 17:37:53 UTC
can you try the version bump in bug 236690? (not commited yet due to selftest failure)

Otherwise search the upstream email lists or changelog for a similar bug reports. Sorry for being slow. too little time.
Comment 2 Daniel Black (RETIRED) gentoo-dev 2008-11-04 12:02:26 UTC
I'm trying to add 2.6.0 which may have a self test error otherwise I'll try to add a later 2.5.* version soon.

url refers to similar bug
Comment 3 Daniel Black (RETIRED) gentoo-dev 2008-11-05 14:40:27 UTC
got the same on 2.5.4 - got a result in 2.6.0

marking as won't fix as i won't mark 2.5.4 stable.