可透过 NGINX 反向代理设定,或是直接在JBOSS调整,
调整步骤如下 (参考「[研究报告] JBoss 开 HTTPS 站台」)
1. 把 digiwin.eai.keystore 放到 $\CROSS\CROSS\server\default\conf 目录下. 2. 编辑 $\CROSS\CROSS\server\default\deploy\jboss-web.deployer\server.xml
<!-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation --> <!-- <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> |
改为 <!-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation --> <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="250" scheme="https" secure="true" clientAuth="false" strategy="ms" address="${jboss.bind.address}" keystoreFile="${jboss.server.home.dir}/conf/digiwin.eai.keystore" keystorePass="kspw9999" truststoreFile="${jboss.server.home.dir}/conf/digiwin.eai.keystore" truststorePass="kspw9999" sslProtocol="TLS" /> |
1. 重启EAI 开启网址 https://localhost:443/CROSS/LoginPage.
|