Skip to content

Commit

Permalink
Chnage honorCipherOrder default to false.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1737117 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Mar 30, 2016
1 parent 83f926a commit 2736749
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion conf/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig honorCipherOrder="false" >
<Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
certificateFile="conf/localhost-rsa-cert.pem"
certificateChainFile="conf/localhost-rsa-chain.pem"
Expand Down
2 changes: 0 additions & 2 deletions java/org/apache/coyote/http2/Http2UpgradeHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@
* <br>
* Note:
* <ul>
* <li>Tomcat needs to be configured with honorCipherOrder="false" otherwise
* Tomcat will prefer a cipher suite that is blacklisted by HTTP/2.</li>
* <li>You will need to nest an &lt;UpgradeProtocol
* className="org.apache.coyote.http2.Http2Protocol" /&gt; element inside
* a TLS enabled Connector element in server.xml to enable HTTP/2 support.
Expand Down
2 changes: 1 addition & 1 deletion java/org/apache/tomcat/util/net/SSLHostConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class SSLHostConfig {
private String ciphers = "HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA";
private LinkedHashSet<Cipher> cipherList = null;
private List<String> jsseCipherNames = null;
private boolean honorCipherOrder = true;
private boolean honorCipherOrder = false;
private Set<String> protocols = new HashSet<>();
// JSSE
private String keyManagerAlgorithm = KeyManagerFactory.getDefaultAlgorithm();
Expand Down
6 changes: 6 additions & 0 deletions webapps/docs/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@
<fix>
Align cipher configuration parsing with current OpenSSL master. (markt)
</fix>
<update>
Change the default for <code>honorCipherOrder</code> to
<code>false</code>. With the current default TLS configuration, it is no
longer necessary for this to be <code>true</code> for a reasonably
secure configuration. (markt)
</update>
</changelog>
</subsection>
<subsection name="WebSocket">
Expand Down
2 changes: 1 addition & 1 deletion webapps/docs/config/http.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@
<attribute name="honorCipherOrder" required="false">
<p>Set to <code>true</code> to enforce the server's cipher order
(from the <code>ciphers</code> setting) instead of allowing
the client to choose the cipher. The default is <code>true</code>.</p>
the client to choose the cipher. The default is <code>false</code>.</p>
</attribute>

<attribute name="hostName" required="false">
Expand Down

0 comments on commit 2736749

Please sign in to comment.