Skip to content

Commit

Permalink
Merge pull request mozilla#22 from simondeziel/sdeziel
Browse files Browse the repository at this point in the history
Use Debian's system-wide trust anchors when possible
  • Loading branch information
jvehent committed Aug 28, 2014
2 parents ecd77f9 + 7dee967 commit ded65c4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cipherscan
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
DOBENCHMARK=0
BENCHMARKITER=30
OPENSSLBIN="$(dirname $0)/openssl"
CACERTS=${CACERTS:-/etc/pki/tls/certs/ca-bundle.crt}
if [ -z "$CACERTS" ]; then
for f in /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt; do
if [ -e "$f" ]; then
CACERTS="$f"
break
fi
done
fi
if [ ! -e "$CACERTS" ]; then
CACERTS="/etc/ssl/certs/ca-certificates.crt"
fi
Expand Down Expand Up @@ -358,6 +365,7 @@ do
done

if [ $VERBOSE != 0 ] ; then
[ -n "$CACERTS" ] && echo "Using trust anchors from $CACERTS"
echo "Loading $($OPENSSLBIN ciphers -v $CIPHERSUITE 2>/dev/null|grep Kx|wc -l) ciphersuites from $(echo -n $($OPENSSLBIN version 2>/dev/null))"
$OPENSSLBIN ciphers ALL 2>/dev/null
fi
Expand Down

0 comments on commit ded65c4

Please sign in to comment.