How do I fix “ssl handshake failed” with ApacheBench?

ApacheBench doesn’t seem to be capable of ignoring certificate problems (at least some of them) so I wrote this script:

#!/bin/bash
K=200;    
HTTPSA='https://192.168.1.103:443/'    
date +%M-%S-%N>wgetres.txt
for (( c=1; c<=$K; c++ ))
do
    wget --no-check-certificate --secure-protocol=SSLv3 --spider $HTTPSA
done
date +%M-%S-%N>>wgetres.txt

It’s not as precise as AB, but gives the idea. Does well in comparison tests.

Leave a Comment