Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT & Jarsigner error: "not a private key"

 
Tom Katz
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic