如何解决" SSL握手失败"与ApacheBench? [英] How do I fix "ssl handshake failed" with ApacheBench?

查看:1272
本文介绍了如何解决" 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

它并不像precise为AB,但给人的想法。在对比测试中做得很好。

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

这篇关于如何解决&QUOT; SSL握手失败&QUOT;与ApacheBench?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆