Yubico Forum
https://forum.yubico.com/

Sign Jar with yubikey and gradle
https://forum.yubico.com/viewtopic.php?f=26&t=2667
Page 1 of 1

Author:  malpi [ Fri Jul 14, 2017 10:40 am ]
Post subject:  Sign Jar with yubikey and gradle

Hey there,

I try to sign a jar with my yubikey and gradle. For that I am using the signing plugin. [1]

Unfortunately thats failing with a stacktrace:

Code:
Caused by: org.bouncycastle.openpgp.PGPException: Exception constructing key
        at org.bouncycastle.openpgp.PGPSecretKey.extractPrivateKey(Unknown Source)
        at org.gradle.plugins.signing.signatory.pgp.PgpSignatory.createPrivateKey(PgpSignatory.java:116)
        ... 84 more
Caused by: java.io.EOFException
        at org.bouncycastle.bcpg.BCPGInputStream.readFully(Unknown Source)
        at org.bouncycastle.bcpg.BCPGInputStream.readFully(Unknown Source)
        at org.bouncycastle.bcpg.MPInteger.<init>(Unknown Source)
        at org.bouncycastle.bcpg.RSASecretBCPGKey.<init>(Unknown Source)


Anyone here got that working and give me some hint?

Best

[1] https://docs.gradle.org/current/usergui ... lugin.html

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/