Как правильно установить SSL в Apache Tomacat?HTTP работает нормально - PullRequest
0 голосов
/ 26 декабря 2018

HTTPS работает нормально в интерфейсе nginx, но вход в систему отклонен. HTTPS также работает нормально.Это ошибка, отображаемая в консоли chrome. Не удалось загрузить ресурс: net :: ERR_SSL_PROTOCOL_ERROR favicon.ico: 1 Не удалось загрузить ресурс: сервер ответил со статусом 500 ().Я создал файл abc.jks.Моя конфигурация server.xml выглядит следующим образом

<Connector port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->

<Connector executor="tomcatThreadPool"
           port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />

<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
       port="8443" maxThreads="200"
       scheme="https" secure="true" SSLEnabled="true"
       keystoreFile="/etc/ssl/certs/abc.jks" keystorePass="MYPASSWORD"
       clientAuth="false" sslProtocol="TLS"/>

<!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
     This connector uses the NIO implementation that requires the JSSE
     style configuration. When using the APR/native implementation, the
     OpenSSL style configuration is required as described in theAPR/native
     documentation -->

  <!-- <Connector
    port="8443"protocol="org.apache.coyote.http11.Http11NioProtocol"
           maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS" />
   -->    ` 
...