Package: openssl Version: 1.0.1e-2+deb7u13 Severity: normal Tags: patch c_rehash in "wheezy" does not create hash symlinks anymore for certificate files with non-unix line endings. This seems to be a side effect of the change in r509, which patched c_rehash to solve #628780. The cause is a classic case of line ending confusion in Perl and the fix is to rewrite all (or most) possible line endings to the native record separator.
-- System Information: Debian Release: 7.7 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.12.20-xslxc (SMP w/16 CPU cores) Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages openssl depends on: ii libc6 2.13-38+deb7u6 ii libssl1.0.0 1.0.1e-2+deb7u13 ii zlib1g 1:1.2.7.dfsg-13 openssl recommends no packages. Versions of packages openssl suggests: ii ca-certificates 20130119+deb7u1 -- no debconf information
--- c_rehash.wheezy 2014-11-18 21:53:00.078304633 +0100 +++ c_rehash.wheezy.fixed 2014-11-19 00:54:44.682254609 +0100 @@ -125,6 +125,7 @@ open my $in_fh, '<', $fname or die "can't open $fname for read"; my $cert = eval {local $/ = undef; <$in_fh>}; close $in_fh; + $cert =~ s{\r?\n|\r}{$/}g; # rewrite to native line endings OUTERLOOP: while ($cert =~ /^(-----BEGIN CERTIFICATE-----.*?-----END CERTIFICATE-----)$/gms) {