Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ANT & Jarsigner error: "not a private key"  RSS feed

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to sign my jars, and re-using portions of an ANT script that I know works to do the same thing, but I am getting this error from the build.xml:

[signjar] jarsigner: key associated with Alias not a private key

Basically, the build script creates a dummy keystore if not being done on the main build machine (where secure keystore is stored.) I'm generating those files, so the script's working up to a point. Below is the section in the script where I"m trying to sign the jar, as well as its dependent targets dealing with the signing/keystore:

 
Tom Katz
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahhh, crikeys.. nevermind, I deleted the old generated files, and when run again, the script works to sign the jar.
 
What are you doing? You are supposed to be reading this tiny ad!
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!