Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2020 06:42:33 -0500
From:      stan <stanb@panix.com>
To:        freebsd-questions@freebsd.org
Subject:   Recompiling openssl library
Message-ID:  <20200123114233.GA17488@panix.com>

Next in thread | Raw E-Mail | Index | Archive | Help
I need to recompile the openssl library on the latest released version of
FreeBSD with the enable-weak-ssl-cipher option turned on.

I need to do this to connect to a large number of devices with old firmware
in them, and this is on an internal network.

I downloaded the openssl tarball from github, configured it this way, and
did a make, and make test. All went well. However the default location to
install this is /usr/local, so I thought it made more sense to compile the
version in the delivered tree with this option. I went to /usr/src and did a
successful make buildworld.

Now we get to my issue I see 2 places that the installed binaries might be
compile from. These are crypto/openssl or secure/usr.bin/openssl.  Looking
in secure/usr.bin/openssl (post make buildworld) I do not see sources, just
some man pages. Looking in crypto/openssl I do find the sources. So, I
tried to run ./config with that option, and here is the result:

root@noc-server:/usr/src/crypto/openssl # ./config enable-weak-ssl-ciphers
Operating system: amd64-whatever-freebsd
Can't locate OpenSSL/Glob.pm in @INC (you may need to install the
OpenSSL::Glob module) (@INC contains: /usr/src/crypto/openssl/util/perl
/usr/local/lib/perl5/site_perl/mach/5.30 /usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.30/mach /usr/local/lib/perl5/5.30) at ./Configure
line 20.
BEGIN failed--compilation aborted at ./Configure line 20.
Can't locate OpenSSL/Glob.pm in @INC (you may need to install the
OpenSSL::Glob module) (@INC contains: /usr/src/crypto/openssl/util/perl
/usr/local/lib/perl5/site_perl/mach/5.30 /usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.30/mach /usr/local/lib/perl5/5.30) at ./Configure
line 20.
BEGIN failed--compilation aborted at ./Configure line 20.
This system (BSD-x86_64) is not supported. See file INSTALL for details.

What am I doing wrong?

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20200123114233.GA17488>