# SSL Question

**URL:** <https://forum.servoy.com/t/ssl-question/15584>\
**Category:** Classic Servoy\
**Created:** [February 27, 2012, 2:52pm UTC](https://forum.servoy.com/t/ssl-question/15584 "2012-02-27T14:52:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [February 27, 2012, 2:52pm UTC](https://forum.servoy.com/t/ssl-question/15584/1 "2012-02-27T14:52:17Z")

</div>

Recently, our PCI security scan failed due to the following:

> Description: SSL server accepts weak ciphers Severity: Potential Problem Impact: A remote attacker with the ability to sniff network traffic could decrypt an encrypted session. Resolution For Apache mod\_ssl web servers, use the [[mod\_ssl - Apache HTTP Server](http://httpd.apache.org/docs/2.0/mod/mod_ssl.html#sslciphersuite)] SSLCipherSuite directive in the configuration file to specify strong ciphers only and disable SSLv2.

Our SSL was setup via the keytool as our server’s only purpose is serving up Servoy.

Does anyone know anything about this or how to accomplish this with the Servoy App Server or is this strictly an apache thing?

We are running Linux - CentOS 5

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [February 28, 2012, 4:03pm UTC](https://forum.servoy.com/t/ssl-question/15584/2 "2012-02-28T16:03:42Z")

</div>

For those watching at home, we found this:

> **[How to Disable Weak Ciphers and SSL 2.0 in Tomcat](https://www.sslshopper.com/article-how-to-disable-weak-ciphers-and-ssl-2-in-tomcat.html)**

We made the changes and restarted Servoy APP server but we’re still getting errors on our PCI scan.

Now, this may be something outside of Servoy, but is anyone aware on a CentOS-flavored Linux server where else we might have to disable weak ciphers?

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [February 28, 2012, 10:51pm UTC](https://forum.servoy.com/t/ssl-question/15584/3 "2012-02-28T22:51:49Z")

</div>

The excitement continues… it appears the warning is on the 1099 port.

Anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [February 29, 2012, 4:18am UTC](https://forum.servoy.com/t/ssl-question/15584/4 "2012-02-29T04:18:15Z")

</div>

Has anyone else here dealt with PCI certification (for credit card processing) in Servoy?

If our server is now failing the certification because of weak ciphers on port 1099, would it make sense to just use HTTP tunnel connection mode?

And if so:

1. Should we up our server resources with more RAM due to the HTTP Tunnel using more server-side resources?
2. If we change the connection mode, what will happen when all of our users double click their shortcut icon on their desktops? Will it error and require a clearing of the cache AND .servoy folder?

Thanks mucho.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [March 1, 2012, 4:53pm UTC](https://forum.servoy.com/t/ssl-question/15584/5 "2012-03-01T16:53:53Z")

</div>

What kind of certificate are you really using then for RMI? (so in your servoy keystore)  
Is it a real valid signed certificate from a trusted source? So the same as you would use for tomcat/apache https itself (so for the tunnel?)  
then it is pretty much the same thing

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [March 1, 2012, 5:05pm UTC](https://forum.servoy.com/t/ssl-question/15584/6 "2012-03-01T17:05:19Z")

</div>

We are using a real, certified crt by a CA. We simply followed the steps found here:

[http://wiki.servoy.com/display/public/t … +Authority](http://wiki.servoy.com/display/public/tutorials/Authorizing+a+self+signed+certificate+by+a+trusted+third+party+Certificate+Authority)

The issue with the PCI test is it feels as if port 1099 is allowing SSLProtocol v2. [SSLv2]

If you read through above, we modified the code in the server.xml to NOT use this protocol.

But the test still fails. ![:(]( "Sad")

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [March 1, 2012, 8:05pm UTC](https://forum.servoy.com/t/ssl-question/15584/7 "2012-03-01T20:05:16Z")

</div>

So the problem is that that the ssl port send out that it supports SSLv2?  
(and you expect SSLv3 or TLS 1.0) ??

[http://stackoverflow.com/questions/4682 … ient-hello](http://stackoverflow.com/questions/4682957/why-does-javas-sslsocket-send-a-version-2-client-hello)

It seems that that is just what Java sends out, but i think in the end it just really talks v3

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [March 1, 2012, 8:19pm UTC](https://forum.servoy.com/t/ssl-question/15584/8 "2012-03-01T20:19:05Z")

</div>

it seems that upgrading to java 7 will disable it by default:

[http://docs.oracle.com/javase/7/docs/te … ents7.html](http://docs.oracle.com/javase/7/docs/technotes/guides/security/enhancements7.html)

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [March 1, 2012, 8:26pm UTC](https://forum.servoy.com/t/ssl-question/15584/9 "2012-03-01T20:26:37Z")

</div>

Aha! That looks like the ticket.

NOW, what possible fun could erupt by moving our server to use Java 7? Are there any known issues there?

---

<div class="post-metadata">

**Author:** ![sebster](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sebster](https://forum.servoy.com/u/sebster)\
**Post date:** [March 1, 2012, 8:38pm UTC](https://forum.servoy.com/t/ssl-question/15584/10 "2012-03-01T20:38:24Z")

</div>

Hi,

Unfortunately it is not possible to tell Java not to use SSLv2 on port 1099 currently. Server.xml only applies to tomcat connectors, not to the RMI port.

I’m not sure if Java 7 does or does not allow SSLv2 to be negotiated, best way to find out is to try it.

Best regards,  
Sebastiaan

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [March 1, 2012, 8:52pm UTC](https://forum.servoy.com/t/ssl-question/15584/11 "2012-03-01T20:52:14Z")

</div>

Thanks Sebastiaan,

We can look at Java 7, but right now, we need the fastest game plan to getting PCI compliant.

It’s integral if we want to use our solution in a SaaS environment. It’s frustrating that it’s not been in an issue for 2 years, but for some reason, the scrutiny of the security scans changed.

So, If our server is now failing the certification because of weak ciphers on port 1099, would it make sense to just use HTTP tunnel connection mode?

And if so:

1. Should we up our server resources with more RAM due to the HTTP Tunnel using more server-side resources?
2. If we change the connection mode, what will happen when all of our users double click their shortcut icon on their desktops? Will it error and require a clearing of the cache AND .servoy folder?

OR is our only option trying Java 7?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [March 1, 2012, 9:28pm UTC](https://forum.servoy.com/t/ssl-question/15584/12 "2012-03-01T21:28:35Z")

</div>

it will not cost that much more memory to use http tunneling  
clients will switch automatically, because network settings will be pushed to the client every time.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [March 1, 2012, 9:31pm UTC](https://forum.servoy.com/t/ssl-question/15584/13 "2012-03-01T21:31:13Z")

</div>

by the way even in java 6 it is not that it is SSLv2 that you talked to it is just that special SSLv2Hello will be there but that will go to SSLv3 right away (if i read everything correctly)

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [March 2, 2012, 1:43pm UTC](https://forum.servoy.com/t/ssl-question/15584/14 "2012-03-02T13:43:52Z")

</div>

We may have done it!

This is what the security firm has come back with:

> I did some testing on this issue and I was unable to connect via SSLv2. See below
> 
> shaner@whitebox:~$ openssl s\_client -host 75.101.159.30 -port 1099 -ssl2  
> CONNECTED(00000003)  
> 31231:error:1406D0CB:SSL routines:GET\_SERVER\_HELLO:peer error no cipher:s2\_pkt.c:675:  
> 31231:error:1407F0E5:SSL routines:SSL2\_WRITE:ssl handshake failure:s2\_pkt.c:428:
> 
> I was also unable to see any ciphers on this port at all. I have submitted your statement along with my testing to management to see if we can lower this issue for you. If you have any other questions, or if there is anything else that I can help you with, feel free to email me back.

Thanks for all your help Servoy guys! You’re the best.

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [March 8, 2012, 2:47am UTC](https://forum.servoy.com/t/ssl-question/15584/15 "2012-03-08T02:47:27Z")

</div>

Aww… so it’s not solved. ![:(]( "Sad")

Supposedly, there are weak ciphers running apparently on port 1099.

```auto
Details: Service: 1099:TCP Supported ciphers: EXP-RC4-MD5:TLSv1/SSLv3:40-bit RC4-MD5:TLSv1/SSLv3:128-bit RC4-SHA:TLSv1/SSLv3:128-bit EXP-DES-CBC-SHA:TLSv1/SSLv3:40-bit DES-CBC-SHA:TLSv1/SSLv3:56-bit DES-CBC3-SHA:TLSv1/SSLv3:168-bit EXP-EDH-RSA-DES-CBC-SHA:TLSv1/SSLv3:40-bit EDH-RSA-DES-CBC-SHA:TLSv1/SSLv3:56-bit EDH-RSA-DES-CBC3-SHA:TLSv1/SSLv3:168-bit AES128-SHA:TLSv1/SSLv3:128-bit DHE-RSA-AES128-SHA:TLSv1/SSLv3:128-bit

```

So, although SSLv2 is not running, supposedly the 40-bit ciphers are under SSLv3 or TLS. So, is there something somewhere where I can disable those ciphers on these protocols?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [March 8, 2012, 8:58am UTC](https://forum.servoy.com/t/ssl-question/15584/16 "2012-03-08T08:58:44Z")

</div>

thats currently not possible, create a case for that so that you can specify this in a property

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [March 8, 2012, 11:40am UTC](https://forum.servoy.com/t/ssl-question/15584/17 "2012-03-08T11:40:57Z")

</div>

Ok, case is created: [https://support.servoy.com/browse/SVY-1724](https://support.servoy.com/browse/SVY-1724)

Hopefully this can be taken care of soon. We appreciate all the help.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [May 25, 2012, 1:09pm UTC](https://forum.servoy.com/t/ssl-question/15584/18 "2012-05-25T13:09:04Z")

</div>

I think you should already be able to make a configuration that works the way you want.

If you enable the tunnel and configure it on in HTTP mode only (so no socket)  
then configure Tomcat like described here:

[http://www.sslshopper.com/article-how-t … omcat.html](http://www.sslshopper.com/article-how-to-disable-weak-ciphers-and-ssl-2-in-tomcat.html)

then you should only have a https port (that you configured in tomcat) that has the weak ciphers disabled.

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [August 15, 2012, 5:12pm UTC](https://forum.servoy.com/t/ssl-question/15584/19 "2012-08-15T17:12:35Z")

</div>

Finally got around to changing our connect mode to http from 2waysocket.

Unfortunately, the speed of our solution was notably slower. So much so that we had to revert back to the 2waysocket.

Should the speed for http be slower? Or was there likely something else we had configured wrong?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [August 16, 2012, 7:45am UTC](https://forum.servoy.com/t/ssl-question/15584/20 "2012-08-16T07:45:25Z")

</div>

purely going over the http mode is a bit slower, because it has more overhead.  
But we don’t really notice it in our own applications.  
Did you disable SocketFactory.tunnelUseSSLForHttp ? because else you would have double ssl encryption. that is a bit waste. (the https of tomcat and the tunnels http ssl encryption)

But in the latest servoy versions we do have now support for it for the socket portion of http&socket, see this [https://support.servoy.com/browse/SVY-1724](https://support.servoy.com/browse/SVY-1724) or the duplicate

[Next page](https://forum.servoy.com/t/ssl-question/15584.md?page=2)
