It seems the path to the config file is hardcoded into the openssl
executable at compile time based on the install dir and the only way to
change it is by setting the environment variable OPENSSL_CONF. I don't
have that option.
In my setup, I am installing openssl to a temp dir ($(SSLDIR)/base) on a
build machine and then copying it to the target machine (/usr/bin). In
my makefile I have:
./Configure fips no-asm no-hw shared --prefix="/usr"
--openssldir="$(SSLDIR)/base" --with-fipsdir="$(SSLDIR)/fips" $(CROSS) && \
$(MAKE) && \
$(MAKE) install_sw INSTALLTOP="$(SSLDIR)/base"
but when I run openssl on the target I get this:
# openssl
WARNING: can't open config file: <long path>/openssl.cnf
OpenSSL>
The --prefix="/usr" switch tells openssl where to find the libs etc. Is
there a similar switch to tell it where to find the config file? I tried
export OPENSSL_CONF="/usr" before the Configure in my makefile but it
didn't do anything...
T.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org