How to enable TLS 1.2 in SoapUI

Originally posted by hyavuz on March 05, 2015

I need to connect a webservice which only accept a connection established via TLS 1.2.

I added the line -Dsoapui.https.protocols=TLSv1.2 in the file SoapUI-5.0.0.vmoptions and it’s not working.

Any help on this.

Thanks

Originally posted by nboyd on March 09, 2015

this is blocking me too! can anyone help?

Originally posted by nmrao on March 09, 2015

Check this link

As per this, you also need to set SSL version as well, something like below

-Dsoapui.https.protocols=SSLv3,TLSv1.2

Originally posted by clum on March 23, 2015

SSLv3 is dead thanks to POODLE. Is there a way to restrice SoapUI from using SSL and always use TLS?

setting up -Dsoapui.https.protocols=TLSv1.2 does not seem to prevent SSL connections

Originally posted by rxwcheer on May 12, 2015

I have also verified that this configuration does not provide TLS only communications. Thank you.

Originally posted by rxwcheer on May 15, 2015

I am working directly with SmartBear support on this question and they are providing valuable insight.

My first observation is that the SOAPUI/Ready! API application does not provide control of the Cipher string at the request level. The Cipher string is set globally during startup.

Second: The SOAPUI/Ready! API application provides support for ciphers based on OpenSSL. The cipher suite names may be found on the OpenSSL support site. http://www.openssl.org/docs/apps/ciphers.html

Third: SOAPUI/Ready! API application provides us with several methods of starting the application. The Windows start menu, command line execution and batch files are all available. The Windows start menu startup used the SoapUI-5.1.3.vmoptions/ReadyAPI-1.3.0.vmoptions file. The batch file startup use soapui.bat/ready-api.bat. This design provides us with the ability to create multiple configurations via the use of numerous iterations of these configuration/startup files.

Fourth: The JVM option -Dsoapui.https.protocols provides management of the SSL protocol list. This option controls which SSL protocols are available when negiating the initial HTTPS connection between the client and the server.

Fifth: The JVM option -Dsoapui.https.ciphers directs the SOAPUI/Ready! API application to use the OpenSSL cipher string when sending the request to the server.

Sixth: The JAVA JRE which is included with the SOAPUI/Ready! API application does not include the “unlimited” version of the JCE; JAVA Cryptography Extensions. You will need to acquire the current version of the JCE from Oracle to expand the list of potential cipher strings to include all possibilites. Information related to the JAVA JCE may be found at this URL. http://www.oracle.com/technetwork/java/javase/overview/index.html

Summary: Addition of the following JVM options to the appropriate configuration file will provide you with the ability to control the cipher string and SSL protocol used by the SOAPUI/Ready! API application.

-Dsoapui.https.protocols=<TLSv1.2, TLSv1, SSLv3>
-Dsoapui.https.ciphers=

Originally posted by rxwcheer on June 18, 2015

Additional notes to clarify these settings.

  • When selecting the protocol and cipher options you will need to select valid combinations. There isn’t any pre-processing of the protocol and cipher options which would let you know in advance whether you have an invalid combination. I use the http://www.openssl.org/docs/apps/ciphers.html#CIPHER-SUITE-NAMES section to determine the correct combination.

  • The correct syntax for the is the represented by the left hand column of the Cipher Suite Names table. The example below represents a TLSv1.2 protocol cipher for AES256-SHA256.

    -Dsoapui.https.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA256

Originally posted by yaggi on December 01, 2015

I ran into same issues with enabling TLS 1.2 in SoapUI, and adding those parameters helped. But it’s only for desktop version. Does anyone knows how to enable TLS 1.2 in SoapUI maven plugin?

Originally posted by nmrao on December 01, 2015

Not really aware of maven. But there should be a way to pass system properties or using JAVA_OPTS

Originally posted by borgymanotoy on January 12, 2016

Just a follow up question for novices like me… where will I put '-Dsoapui.https.protocols=SSLv3,TLSv1.2’.

I am pretty new to SoapUI and I have no idea where to put this.

Hope somebody can help me how :slight_smile:

Originally posted by nmrao on January 12, 2016

  1. Go to SOAPUI_HOME/bin
  2. Take backup of soapui.bat/.sh depnding on your OS platform, in case you want to revert the change quickly later.
  3. Open the above file, and locate JAVA_OPTS, then you can add another line

for eg:

//windows
set JAVA_OPTS=%JAVA_OPTS% "-Dsoapui.https.protocols=SSLv3,TLSv1.2"

//unix
export JAVA_OPTS=$JAVA_OPTS "-Dsoapui.https.protocols=SSLv3,TLSv1.2"

Then save the changes, then rest soapUI if it is already running.

Originally posted by mhpetersaz on January 24, 2016

I’ve performed the steps outlined in this thread, however, this does not appear to work with SoapUI 5.2.1. I’m still getting “handshake_failure”. The log file is quite lengthy, however, I’d be glad to attach it if necessary.

Originally posted by nmrao on January 25, 2016

I would suggest to open a topic (rather than reviving old resolved one) with all the required details. And should be a problem to attach a zip file if you want to upload logs.

Originally posted by mrwhave on March 24, 2016

Your syntax seems to be off slightly, the double quote character is not positioned correctly. I have just enabled TLS 1.1 for my client by adding the following to my .bat file:

set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.https.protocols="SSLv3,TLSv1.2"

Please note the " character is AFTER the =, wrapped around the value of the protocols, and NOT before the - (dash).

Doublechecked, the above really works.

Originally posted by tsfudala on April 25, 2016

Has anyone enabled TLS 1.2 on OSX 10.11 successfully?

Originally posted by jd on May 24, 2016

The default install location for Mac is in the root Applications folder, and the vmoptions.txt file is in there. Something like:

/Applications/SoapUI-X.X.X.app/Contents/vmoptions.txt

You can add the -Dsoapui.https.protocols=TLSv1.2line there.

Worth noting that you have to either go through a terminal to get there, or choose “Show Package Contents” in the /Applications folder to get to the internal files.

Originally posted by AT on June 29, 2016

Place this in your SoapUI-X.Y.Z.vmoptionsf file (where X.Y.Z is the version number of SOAPUI you have)

-Dsoapui.https.protocols=TLSv1.2,SSLv3

The above worked for me on v5.2.0.

Adios,

Adi

Originally posted by Denno on June 29, 2016

AT’s method works.

Default windows location of the file he mentions is in [InstallDirectory]\bin\

So for me for example it was:

C:\Program Files\SmartBear\SoapUI-5.2.1\bin\SoapUI-5.2.1.vmoptions

Add following line and restart.

-Dsoapui.https.protocols=TLSv1.2,SSLv3

The .bat option by nmrao above helps if you need multiple startup options. i.e. some servers might not support TLS 1.2… (shame on them really, but ok)

Originally posted by tbd on August 23, 2016

I use SoapUI 5.2.1 and I’v tried to set the above parameters (-Dsoapui.https.protocols=SSLv3,TLSv1.2).

But it doesn’t work :frowning:

Got handshake_failure!

And the webservices which I need to connect only accept a connection established via TLS 1.2.

Anyone can help please?

Originally posted by zane on August 28, 2016

I recently had the same problem with SoapUI 5.2.1 on OS X. I tried everything discussed on the forums: made sure to use the correct JRE; added -Dsoapui.https.protocols=TLSv1.2 to vmoptions; tried the “-Dsoapui.https.ciphers=” option with the exact configuration the browser was successfully using to connect to the server; made sure I was using the Unlimited JCE Policy Update in the JRE… nothing worked. Same SSL handshake error.

So, I decided to try the snapshot build of SoapUI 5.2.2 (https://github.com/SmartBear/soapui/) and thatworked properly without any tweaking. (It did take some effort to actually get it to build successfully on my machine, but that’s a separate topic)

Hope that helps, and hope the community and Smart Bear continue development on the open source version.