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