Mark,

On 8/17/21 18:33, Mark Thomas wrote:
On 17/08/2021 22:38, ma...@apache.org wrote:
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
      new 7e7dbac  Update to JSign 4.0 to remove dependency on client tools.

Probably one for Emmanuel.

I'm trying to do a release build from 8.5.x with 1.7.0_80_x64 (Oracle) and I am getting the following error below on signing.

Any hints on how to fix this?

This looks to me like an untrusted client certificate error.

-chris


C:\asf-tomcat\build.xml:2295: Couldn't sign C:\asf-tomcat\output\dist\Uninstall.exe
         at net.jsign.JsignTask.execute(JsignTask.java:183)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:352)
         at org.apache.tools.ant.Target.execute(Target.java:437)
         at org.apache.tools.ant.Target.performTasks(Target.java:458)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1406)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1377)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1261)
         at org.apache.tools.ant.Main.runBuild(Main.java:857)
         at org.apache.tools.ant.Main.startAnt(Main.java:236)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: net.jsign.SignerException: Couldn't sign C:\asf-tomcat\output\dist\Uninstall.exe
         at net.jsign.SignerHelper.sign(SignerHelper.java:517)
         at net.jsign.JsignTask.execute(JsignTask.java:181)
         ... 16 more
Caused by: net.jsign.bouncycastle.operator.RuntimeOperatorException: exception obtaining signature: java.security.GeneralSecurityException: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure         at net.jsign.bouncycastle.operator.jcajce.JcaContentSignerBuilder$1.getSignature(Unknown Source)         at net.jsign.bouncycastle.cms.SignerInfoGenerator.generate(Unknown Source)         at net.jsign.bouncycastle.cms.CMSSignedDataGenerator.generate(Unknown Source)         at net.jsign.bouncycastle.cms.CMSSignedDataGenerator.generate(Unknown Source)         at net.jsign.asn1.authenticode.AuthenticodeSignedDataGenerator.generate(AuthenticodeSignedDataGenerator.java:50)         at net.jsign.AuthenticodeSigner.createSignedData(AuthenticodeSigner.java:363)
         at net.jsign.AuthenticodeSigner.sign(AuthenticodeSigner.java:334)
         at net.jsign.SignerHelper.sign(SignerHelper.java:509)
         ... 17 more
Caused by: java.security.SignatureException: java.security.GeneralSecurityException: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure         at net.jsign.jca.SigningServiceSignature.engineSign(SigningServiceSignature.java:64)         at java.security.Signature$Delegate.engineSign(Signature.java:1205)
         at java.security.Signature.sign(Signature.java:578)
         ... 25 more
Caused by: java.security.GeneralSecurityException: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure         at net.jsign.jca.DigiCertOneSigningService.sign(DigiCertOneSigningService.java:207)         at net.jsign.jca.SigningServiceSignature.engineSign(SigningServiceSignature.java:62)
         ... 27 more
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
         at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
         at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
        at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1979)         at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1086)         at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)         at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)         at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)         at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1092)         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
         at net.jsign.jca.RESTClient.query(RESTClient.java:62)
         at net.jsign.jca.RESTClient.post(RESTClient.java:47)
        at net.jsign.jca.DigiCertOneSigningService.sign(DigiCertOneSigningService.java:202)
         ... 28 more

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to