Closed mrshorten closed 1 year ago
It looks like Jsign can't access the hardware token. Are you sure the build is run in the same environment and not inside a container lacking access to the token?
What Java version? It might be an upstream bug. https://github.com/corretto/corretto-8/issues/306
I don't think it'is related to this issue, this looks more like a bad SunPKCS11 configuration.
@mrshorten could you try again with the -Djava.security.debug=sunpkcs11
parameter?
I am attempting to automate Code signing from our bamboo server. Everything seems to work well when remotely logged into the machine using this command:
java -jar C:\Users\USER\jsign-4.1.jar --keystore C:\Users\USER\eToken.cfg --alias "ALIAS" --storetype PKCS11 --storepass PASSWORD --alg SHA-256 --tsaurl http://timestamp.digicert.com --tsmode RFC3161 FILE_TO_SIGN
However when running that same command as part of a build task i get the following error. The bamboo service is running as the same user that i remotely logged into. Any thoughts would be greatly appreciated.