Hi Timothy,
Thanks for reporting back your experience. In order to track the remaining
issues with "disableCipherSuites", I've just entered a report:
"Unable to use "disabledCipherSuites" with HTTPS"
http://restlet.tigris.org/issues/show_bug.cgi?id=930Please feel free to add comment or contribute a fix if possible.
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~
http://www.restlet.orgNoelios Technologies ~ Co-founder ~
http://www.noelios.com-----Message d'origine-----
De : Timothy Aanerud [mailto:
[hidden email]]
Envoyé : dimanche 18 octobre 2009 00:54
À :
[hidden email]
Objet : RE: Re: Disabling weak ciphers in Restlet
Thanks!
Three comments:
1. I ended up using
parameters.add("enabledCipherSuites", aStringOfCiphers)
At this level the ciphers are in a single string separated by a space. They
eventually end up as array
2. I wasn't able to use "disabledCipherSuites" because deep down in
HttpsServerHelper.start() it takes the list of enabled ciphers converts it
from String[] to List<String> then starts removing the the disabled ones.
After removing items the List<String> is converted back to a String[].
But this conversion didn't work correctly:
enabledCipherSuites = enabledCipherSuitesList
.toArray(enabledCipherSuites);
enabledCipherSuites started with 18 elements, I removed the last for, and
when inspected the final result, the String array still had 18 elements, but
the 14th one was null. The call to
serverSocket.setEnabledCipherSuites(enabledCipherSuites); fails due to a
null.
3. The names of Ciphers reported by OpenSSL are not the same as the ones
reported by HttpsUtils.getEnabledCipherSuites(); In my case I'm use the
SimpleHTTP server. By some trial and error testing I was able to identify
the weak ciphers.
But other that; disabling the weak ciphers was easy. Just one variable
declaration and one line of code. :-)
--
Timothy
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2408588
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2413657