Corrupted keystore

15 views
Skip to first unread message

'Dipo Odumosu

unread,
Mar 30, 2011, 7:06:56 AM3/30/11
to jpos-...@googlegroups.com
Hello,
Oddly enough, today's not a question. Just something I noticed.

I stored a key in a keystore and saved it to a file, so my jPOS app
could use the key. I saved the keystore into my cfg folder and my module
threw an IOException, telling me the keystore had been tampered with, or
the password was wrong. Since I hardcoded the password, I assumed the
keystore was corrupt, but why?

Eventually, I looked at the Jetty6 and Jetty7 modules, and saw that the
keystores were not saved in cfg, but in lib. I changed the location of
the keystore and my deploy descriptor to point to the lib folder instead
of the config folder, and the problem was fixed.

I wanted to place this as a warning that (binary?) files placed in the
cfg folder might be mangled while running ant.

Regards.

Jeronimo Paoletti

unread,
Mar 30, 2011, 7:37:24 AM3/30/11
to jpos-...@googlegroups.com, 'Dipo Odumosu
This behavior is just in *nix systems, not on OSX (i dont know in Window$) and i wasn't able to find another solution than putting it in lib folder.

I agree that a warning would be nice.

--
Lic. Jerónimo Paoletti

Andrés Alcarraz

unread,
Mar 30, 2011, 7:55:13 AM3/30/11
to jpos-...@googlegroups.com, Jeronimo Paoletti, 'Dipo Odumosu
Problem is the filtering the ant build makes over the files in the cfg, this preprocessing is to replace "MACRO" variables like ports or database, to be able to simply compile the project for different environments (production, test, dev). A suggestion could be using a common folder cfgbin (or cfg/bin if this path can be excluded from the filtering easly, don't remember the exact code  that does this).

Regards

Andrés

2011/3/30 Jeronimo Paoletti <jeronimo...@gmail.com>
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org
 
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users

Reply all
Reply to author
Forward
0 new messages