kopia lustrzana https://github.com/alecmuffett/eotk
commit: openssl config
rodzic
658467568c
commit
fb28fcb000
|
@ -63,10 +63,24 @@ BREW_OPENSSL=/usr/local/opt/openssl/bin/openssl
|
|||
|
||||
if [ -f $BREW_OPENSSL ] ; then
|
||||
OPENSSL=$BREW_OPENSSL
|
||||
OPENSSL_CONFIG=/usr/local/etc/openssl/openssl.cnf
|
||||
else
|
||||
OPENSSL=openssl
|
||||
OPENSSL_CONFIG=/etc/ssl/openssl.cnf
|
||||
fi
|
||||
|
||||
# order is important, first come, first served
|
||||
cnflist="
|
||||
/usr/local/etc/openssl/openssl.cnf
|
||||
/etc/ssl/openssl.cnf
|
||||
/etc/pki/tls/openssl.cnf
|
||||
"
|
||||
|
||||
for OPENSSL_CONFIG in $cnflist "" ; do
|
||||
test -f $OPENSSL_CONFIG && break
|
||||
done
|
||||
|
||||
if [ "x$OPENSSL_CONFIG" = "x" ] ; then
|
||||
echo error: cannot find OPENSSL_CONFIG amongst candidates: $cnflist
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dn_c="AQ" # CountryName: Antarctica
|
||||
|
|
Ładowanie…
Reference in New Issue