jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 62595] New: SMTPSampler does not allow configuring the SSL/TLS protocols to be used on handshake
Date Fri, 03 Aug 2018 05:06:22 GMT

            Bug ID: 62595
           Summary: SMTPSampler does not allow configuring the SSL/TLS
                    protocols to be used on handshake
           Product: JMeter
           Version: 4.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
  Target Milestone: ---

Currently the logic on SendMailCommand#prepareMessage method does the

 if (useStartTLS || useSSL) {
    try {
      String allProtocols = StringUtils.join(                  
 SSLContext.getDefault().getSupportedSSLParameters().getProtocols(), " ");"Use ssl/tls protocols for mail: {}", allProtocols);
       props.setProperty("mail." + protocol + ".ssl.protocols", allProtocols);

The default SSLContext will return a list of all supported protocols for the
current JRE, typically "SSLv2Hello TLSv1 TLSv1.1 TLSv1.2"

If for some reason the server does not accept the deprecated SSLv3 protocol
(see the handshake will fail.

This article describes how to disable SSLv3 (and the SSLv2Hello

Which can be done by setting the system property "jdk.tls.client.protocols" at
startup time.

The bug arises because the code is getting the supported not the enabled

Expected behavior on the SSL/TLS handshake would be that the SMTPSampler only
used the enabled protocols.

Because the system property changes the settings for the default SSLContext, I
suggest that a new configuration field is added on the GUI panel for the
SMTPSampler that allows to override the list of protocols so one can
specifically set which protocols to be used for the handshake.

You are receiving this mail because:
You are the assignee for the bug.
View raw message