Проблем с внедряването на SSL сервлет: получи запис, който надвишава максимално допустимата дължина

Имам проблем с използването на SSL с моето приложение. Направих следното:

Добавих следния пасаж към моя маркер за ограничение на сигурността:

 <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>

и добавих следното в моя Server.xml в Tomcat

<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="c:/keystore.key"
keystorePass="mypassword" />

Сега при

https://localhost:8443/Appname/page.jsp

Получавам следното

Secure Connection Failed
An error occurred during a connection to localhost:8443.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)
  The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
  Please contact the website owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.

Някакви предположения ?


person Murphy316    schedule 28.06.2012    source източник


Отговори (2)


Трябва да зададете SSLEnabled на true на вашия конектор .

<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="c:/keystore.key"
keystorePass="mypassword"
SSLEnabled="true" />
person Joachim Sauer    schedule 28.06.2012

Зависи и от браузъра, който използвате. Аз самият имах същия проблем в моята местна среда. Опитах във Firefox и Chrome и се сблъсках с този проблем. Но когато опитах в Internet Explorer, след като прочетох няколко публикации в Google, работи без проблеми.

-Благодаря

person Jagadeesh    schedule 08.07.2014