1

有没有人为 https 协议成功运行 Jenkins-cli.jar?

我在 https 上不断收到从客户端到 Jenkins 的连接错误。有人可以帮我吗?我由衷的感谢。

-> java -Djavax.net.ssl.trustStore=/tmp/jenkins2/jenkinskeystore.jks -Djavax.net.ssl.trustStorePassword=<password> -jar jenkins-cli.jar -s https://jenkins2.eng.proofpoint.com:8443 help
Exception in thread "main" java.io.IOException: Failed to connect to https://jenkins2.eng.proofpoint.com:8443/
        at hudson.cli.CLI.getCliTcpPort(CLI.java:266)
        at hudson.cli.CLI.<init>(CLI.java:126)
        at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
        at hudson.cli.CLI._main(CLI.java:466)
        at hudson.cli.CLI.main(CLI.java:382)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:882)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1199)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133)
        at hudson.cli.CLI.getCliTcpPort(CLI.java:264)
        ... 4 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
        at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:462)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
        ... 11 more

在哪里:

  • /tmp/jenkins2/jenkinskeystore.jks 是来自以下服务器命令的 /u/xbuild/.ssh/jenkinskeystore.jks 的副本。
  • 与以下服务器命令中的密码相同
  • jar jenkins-cli.jar 在以下服务器命令中从 /share/pub/build/jenkins2/bin/jenkins.war 中提取
  • 以下 Jenkins 服务器正在 Jenkins 版本上运行。1.605。

服务器进程:

$ /etc/alternatives/java -Djava.awt.headless=true -server -Xms2048m -Xmx8192m -XX:PermSize=512m -XX:MaxPermSize=1024m -DJENKINS_HOME=/share/pub/build/jenkins2 -jar /share/pub/build/jenkins2/bin/jenkins.war --logfile=/share/pub/build/jenkins2/log/jenkins.log --webroot=/var/cache/jenkins/war --httpPort=-1 --httpsPort=8443 --httpsKeyStore=/u/xbuild/.ssh/jenkinskeystore.jks --httpsKeyStorePassword=<password> --ajp13Port=-1 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
$ hostname
jenkins2.eng.proofpoint.com
4

0 回答 0