Проблема с реализацией сервлета 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