• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

ANT & Jarsigner error: "not a private key"

 
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.
    Bookmark Topic Watch Topic
  • New Topic