Setting up Jmeter to do HTTPS

前端 未结 8 1205

I am using a jmeter 2.7 for my load testing. When we started of the urls to use were simple http. Now we have moved to HTTPS. Can some one tell me how to enable ssl in jmete

8条回答
  •  清歌不尽
    2021-01-01 19:58

    I couldn't get this to work.

    curl -X GET "https://x.com/PROMOT" -k -H "Authorization: Basic YWRtaW46cGFzcw=="
    

    Would work.

    However JMeter 2.13 with https and HttpClient3.1/HttpClient4/Java would error on

    javax.net.ssl.SSLException: Received fatal alert: protocol_version
    

    My site used https only.

    I did a wireshark and the https curl seems to utilize TLSV1 JMeter seemed to do SSLv3 which did not work. Added this property as it works now.

    Added in jmeter.propeties and things work now!

    https.default.protocol=TLSv1
    

    Or an argument with jmeter.

     --jmeterproperty https.default.protocol=TLSv1
    

    A side note: https.default.protocol=TLS exists commented in jmeter.properties, But uncommenting that still defaulted to SSLv3. Had to explicitly change it to TLSv1.

提交回复
热议问题