Hello.

Is it possible to temporarily add a trusted CA certificate for use in JSSE/SSL code?

The documentation (official and unofficial) mentions using keytool to import certificates into the system cacerts file:

Java Code:
$ sudo keytool -import -trustcacerts -keystore /usr/lib/openjdk6/jre/cacerts ...
I don't want to modify this file - I'd rather load extra certificates at runtime.