9.19.2007

install cert

because it was one of my most accessed posts from the old blog, i thought that i'd repost it here.

i've done a fair amount of fighting with trusted certificates in java and it's a big pain. luckily, Andreas Sterbenz made this really useful little tool that accesses a site and adds it to a keystore automatically. the only downside was that it was written for java 1.5 and can't be used with earlier versions.

it only took a couple minor changes to allow the utility to work with 1.4 and now i've got it packaged into an executable jar. it's attached to this entry... just execute java -jar install-cert-1.0.jar to see some usage instructions. enjoy.

by the way, the original file made reference to a license that i couldn't find. i'm assuming that since he only posted the source it could be modified and redistributed. if it turns out that there are any issues, somebody please let me know and i'll be glad to remove this post.

download it here

2 comments:

Unknown said...

how do you configure http proxy setting in installcert.java??

Greg Kick said...

http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html should have all of the information you need.