我们在 Red Hat 7 服务器上使用 Nexus Repository Manager 2。我们配置了一个由我们的客户端签名的证书,我们不想通过 HTTPS 访问 Nexus。我们执行以下步骤:
keystore.jks
在 /nexus/conf/ssl
并将客户端签名的证书放在此 keystore 中。 nexus.properties
与 application-port-ssl
我们为 HTTP 和 HTTPS 使用了两个不同的端口 jetty-https.xml
带有 keystore 、信任库的路径和此 jetty-http-redirect-to-https.xml
wrapper.conf
具有以下参数:wrapper.app.parameter.1=./conf/jetty.xml
wrapper.app.parameter.2=./conf/jetty-requestlog.xml
wrapper.app.parameter.3=./conf/jetty-https.xml
wrapper.app.parameter.4=./conf/jetty-http-redirect-to-https.xml
每次我们收到
ERR_CONNECTION
在我们的网络浏览器上。HTTP 运行良好,但是当我们想切换到 HTTPS 时,它就不再工作了。那么您能帮我们为 Nexus 配置 SSL 连接吗?
Nexus 在 Jetty 上运行。
BR
最佳答案
要让 Nexus 直接服务 SSL,您只需按照 Nexus Repository Manager v2 官方文档中的步骤操作即可。或 v3 .我已经测试了提供的步骤,发现它们现在可以在我的设置中使用并使用它。
如果它不适合您,您可以继续进行一些故障排除,包括启动和监控日志文件
/etc/init.d/nexus start && tail -F /opt/nexus/sonatype-work/nexus3/log/*.log
以及检查服务器端口,即通过
openssl s_client -connect $(hostname):443 -state -msg
因为您的证书和/或 Java keystore (JKS) 文件可能存在错误。
关于java - 无法通过 SSL 连接访问 Nexus GUI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48464587/