# How to enable TLS 1.2 in SoapUI

**URL:** <https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154>\
**Category:** SoapUI OS\
**Tags:** api, soapui, migrated, https, tls\
**Created:** [March 5, 2015, 8:19pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154 "2015-03-05T20:19:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [March 5, 2015, 8:19pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/1 "2015-03-05T20:19:28Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [March 9, 2015, 8:52pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/2 "2015-03-09T20:52:02Z")

</div>

> Originally posted by **nboyd** on March 09, 2015

this is blocking me too! can anyone help?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [March 10, 2015, 4:46am UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/3 "2015-03-10T04:46:21Z")

</div>

> Originally posted by **nmrao** on March 09, 2015

Check this [link](http://forum.soapui.org/viewtopic.php?f=5&t=22459)

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

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

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [March 23, 2015, 1:53pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/4 "2015-03-23T13:53:49Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [May 12, 2015, 1:16pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/5 "2015-05-12T13:16:37Z")

</div>

> Originally posted by **rxwcheer** on May 12, 2015

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

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [May 15, 2015, 9:31am UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/6 "2015-05-15T09:31:51Z")

</div>

> 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](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](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=

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 18, 2015, 5:47pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/7 "2015-06-18T17:47:48Z")

</div>

> 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](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.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [December 1, 2015, 1:14pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/8 "2015-12-01T13:14:50Z")

</div>

> 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?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [December 1, 2015, 3:28pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/9 "2015-12-01T15:28:14Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 13, 2016, 2:53am UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/10 "2016-01-13T02:53:27Z")

</div>

> 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 🙂** _

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 13, 2016, 4:18am UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/11 "2016-01-13T04:18:36Z")

</div>

> 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:

```auto
//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.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 24, 2016, 5:17pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/12 "2016-01-24T17:17:22Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 25, 2016, 8:49am UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/13 "2016-01-25T08:49:48Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [March 24, 2016, 10:34am UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/14 "2016-03-24T10:34:07Z")

</div>

> 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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [April 25, 2016, 9:55pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/15 "2016-04-25T21:55:56Z")

</div>

> Originally posted by **tsfudala** on April 25, 2016

Has anyone enabled TLS 1.2 on OSX 10.11 successfully?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [May 24, 2016, 2:30pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/16 "2016-05-24T14:30:55Z")

</div>

> 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.2_line 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.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 29, 2016, 8:55am UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/17 "2016-06-29T08:55:31Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 29, 2016, 12:52pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/18 "2016-06-29T12:52:09Z")

</div>

> 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.

```auto
-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)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [August 24, 2016, 12:59am UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/19 "2016-08-24T00:59:45Z")

</div>

> 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 ☹

Got handshake\_failure!

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

Anyone can help please?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [August 28, 2016, 6:00pm UTC](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154/20 "2016-08-28T18:00:21Z")

</div>

> 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/](https://github.com/SmartBear/soapui/)) and that_worked 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.

[Next page](https://community.smartbear.com/t/how-to-enable-tls-1-2-in-soapui/154.md?page=2)
