HTTPS:无法启用对远程服务器的SSL支持

时间:2019-06-26 14:15:17

标签: apache ssl proxypass

我正在尝试配置我的网络服务器(在apache https 443上运行)以代理传递给我的应用服务器,该应用服务器在一个运行于端口8443上的嵌入式tomcat的jar中 所有端口都打开,并且我的firewalld也正在我的网络服务器上运行

这两个服务器都在https上运行,如果直接连接,它们将起作用。现在,我想当我从浏览器发出请求以将请求定向到Web服务器,并且Web服务器将proxypass到我的后端时,所有这些功能都可以在http上使用,但是一旦我切换到https,就会收到错误消息“ https:无法启用ssl支持(我的后端)”

<VirtualHost servername:443>

ServerName servername:443

LogLevel warn
SSLEngine on
SSLProxyEngine on
SSLProxyCheckPeerCN off
SSLProxyVerify none
SSLProxyCheckPeerExpire off
SSLProxyCheckPeerName off
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA
SSLCertificateFile servername.cert
SSLCertificateKeyFile servername.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/u01/www/">
   SSLOptions +StdEnvVars
</Directory>

<Proxy *>
   Order deny,allow
   Allow from all
</Proxy>

ProxyPass /Banks/list https://mybackend:8443/Banks/list
ProxyPassReverse /Banks/list https://mybackend:8443/Banks/list





This is my application.properties 


server.port=8443
security.require-ssl=true


# The format used for the keystore
server.ssl.key-store-type=PKCS12

# The path to the keystore containing the certificate
server.ssl.key-store=classpath:keystore.p12

# The password used to generate the certificate

server.ssl.key-store-password=****
#server.ssl.key-store-password=${ENV_PASSWORD_FOR_PROD}

# The alias mapped to the certificate
server.ssl.key-alias=tomcat

#Hide whitelabel error
server.error.whitelabel.enabled=false


this is the actual error im getting 

[proxy:error] [pid 12700:tid 139819028047616] AH00961: HTTPS: failed to enable ssl support for mybacked

0 个答案:

没有答案