本文介绍了如何修复“ssl 握手失败"?使用 ApacheBench?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用ApacheBench测试https时,返回错误ssl握手失败".
When I use ApacheBench to test https, the error is returned, "ssl handshake failed".
如何使用 ApacheBench 测试 https?
How can I use ApacheBench to test https?
推荐答案
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
它不如 AB 精确,但提供了思路.在对比测试中表现良好.
It's not as precise as AB, but gives the idea. Does well in comparison tests.
这篇关于如何修复“ssl 握手失败"?使用 ApacheBench?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!