Probleme mit OpenSSL und SSLeay unter Debian

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
Post Reply
gladiac
Posts: 9
Joined: 2003-02-28 09:23
 

Probleme mit OpenSSL und SSLeay unter Debian

Post by gladiac »

Hallo,

ich habe Debian auf meinem Rootie installiert.

Später habe ich dann noch Webmin installiert in der neusten Version und versucht auf SSL umzustellen. Geht nicht. SSLeay.pm ist nicht installiert. ssleay habe ich aber über apt-get installiert. Auch openssl ist installiert. Beim compilen eines Eggdrops geht es sogar soweit, dass er sagt OpenSSL sei nicht installiert bzw. man solle den Pfad angeben!

Kann es sein, dass man noch irgendetwas einstellen muss damit OpenSSL richtig funktioniert?

Kann mir irgendjemand helfen?! =)
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: Probleme mit OpenSSL und SSLeay unter Debian

Post by captaincrunch »

SSLeay.pm ist nicht installiert.
Das File hat IMHO auch nicht viel mit dem Debian ssleay-Paket zu tun, sondern es handelt sich dabei um ein File, das SSL unter Perl ermöglicht. Mir fällt der Name des Packages gerade nicht ein, aber wenn du per CPAN das ganze installierst, sollte der Rest auch kein Problem mehr sein ...
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
gladiac
Posts: 9
Joined: 2003-02-28 09:23
 

Re: Probleme mit OpenSSL und SSLeay unter Debian

Post by gladiac »

Achja, bei CPAN habe ich auch ein Problem :o) Nämlich wenn er es compilen will kommt dort ein Fehler.

Code: Select all

Starte /usr/bin/perl Makefile.PL  && make ..
                                                                                                    
Checking for OpenSSL-0.9.6g or newer...
openssl-0.9.6d and earlier versions have security flaws, see advisory at www.openssl.org, upgrading 
to openssl-0.9.6g is recommended.
You have OpenSSL-0.9.6c installed in /usr
*** Could not figure out which C compiler was used to compile /usr/bin/openssl. It is essentiall tha
t OpenSSL, perl, and Net::SSLeay are compiled with the same compiler and flags. Mixing and matching 
compilers is not supported. at Makefile.PL line 132.
Checking if your kit is complete...
Looks good
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SSLeay::Handle
Writing Makefile for Net::SSLeay
cp ptrtstrun.pl blib/lib/Net/ptrtstrun.pl
cp SSLeay.pm blib/lib/Net/SSLeay.pm
AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay)
blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters:
 directory blib/lib/auto/Net/SSLeay:
  do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https
  get_https.al, get_https3.al, get_https4.al truncate to get_http
  head_https.al, head_https3.al, head_https4.al truncate to head_htt
  post_https.al, post_https3.al, post_https4.al truncate to post_htt
  put_https.al, put_https3.al, put_https4.al truncate to put_http
  ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read
  ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ
make[1]: Entering directory `/tmp/.webmin/Net_SSLeay.pm-1.22/Net-SSLeay-Handle-0.50'
cp Handle.pm ../blib/lib/Net/SSLeay/Handle.pm
Manifying ../blib/man3/Net::SSLeay::Handle.3pm
make[1]: Leaving directory `/tmp/.webmin/Net_SSLeay.pm-1.22/Net-SSLeay-Handle-0.50'
/usr/bin/perl -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 /usr/share/perl/5.6.1/ExtUtils/xsubpp  -
typemap /usr/share/perl/5.6.1/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.
xsc SSLeay.c
cc -c -I/usr/include -I/usr/inc32 -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SO
URCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION="1.22" -DXS_VERSION="1.22" -fPIC -I/usr/lib/perl/5.6.
1/CORE -DPERL5 SSLeay.c
SSLeay.xs:83: openssl/err.h: No such file or directory
SSLeay.xs:84: openssl/lhash.h: No such file or directory
SSLeay.xs:85: openssl/rand.h: No such file or directory
SSLeay.xs:86: openssl/buffer.h: No such file or directory
SSLeay.xs:87: openssl/ssl.h: No such file or directory
SSLeay.xs:88: openssl/comp.h: No such file or directory
SSLeay.xs:89: openssl/md5.h: No such file or directory
make: *** [SSLeay.o] Error 1


Hängt das mit dem Eggdrop und openssl auch damit zusammen oder kann es einfach sein, wie ich mal aus dem Fehler rausnehmen, dass das Problem an openssl liegt und nicht an ssleay?! ich bin dankbar für jede Hilfe! :o)
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: Probleme mit OpenSSL und SSLeay unter Debian

Post by captaincrunch »

Das Problem ist eigentlich ganz einfach : du hast die OpenSSL-Headerfiles (*.h) nicht installiert, die im -dev-Paket enthalten sind ... :wink:
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
gladiac
Posts: 9
Joined: 2003-02-28 09:23
 

Re: Probleme mit OpenSSL und SSLeay unter Debian

Post by gladiac »

Wie heisst das Package denn bei Debian? openssl-dev, oder? -_-
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: Probleme mit OpenSSL und SSLeay unter Debian

Post by captaincrunch »

In dem Fall leider nein. Schau mal nach libssl-dev
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
gladiac
Posts: 9
Joined: 2003-02-28 09:23
 

Re: Probleme mit OpenSSL und SSLeay unter Debian

Post by gladiac »

Okay, also ich habs jetzt mit CPAN über Webmin installieren können, das SSLeay

Aber trotzdem spuckt Webmin das aus bei SSL:

Das Net::SSLeay Perl-Modul scheint auf Ihrem System nicht installiert zu sein. Um die OpenSSL-Bibliothek und Net::SSLeay zu installieren, folgen Sie diesen Anweisungen von der Webmin-Webseite.
The error message from Perl was :
Can't locate Net/SSLeay.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at (eval 16) line 2.
BEGIN failed--compilation aborted at (eval 16) line 2.
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: Probleme mit OpenSSL und SSLeay unter Debian

Post by captaincrunch »

Liegt das File etwa nicht in einem der angegebenen Pfade ?

Mach mal ein find /usr -name SSLeay.pm
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
gladiac
Posts: 9
Joined: 2003-02-28 09:23
 

Re: Probleme mit OpenSSL und SSLeay unter Debian

Post by gladiac »

Naja doch, deswegen wundert es mich ja ...

Code: Select all


> find /usr -name SSLeay.pm
/usr/local/lib/perl/5.6.1/Net/SSLeay.pm

Das ist ja das komische!
gladiac
Posts: 9
Joined: 2003-02-28 09:23
 

Re: Probleme mit OpenSSL und SSLeay unter Debian

Post by gladiac »

Also ich weiß einfach nicht woran das ganze liegt, es fehlen doch eine Librarys mehr oder?!
Post Reply