users@glassfish.java.net

Re: custom X509TrustManager

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Jul 2008 06:30:14 PDT

None that i know of, but i will check and getback to you.

The option that can be explored is writing a LifeCycle Module for GlassFish that installs the TrustManager

https://glassfish.dev.java.net/javaee5/docs/DG/beamc.html

Within the Lifecycle module you could try installing your trustmanager using code of the form :

SSLContext context = SSLContext.getInstance("TLS");
context.init(your-keyManagers, your-trustManagers, sr);

I have not tried this approach though. If you try and it works let me know.

Thanks.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

http://forums.java.net/jive/thread.jspa?messageID=284685