Re: HTTPS client throws "javax.net.ssl.SSLHandshakeException: unknown certificate"

From: someone (someone_at_somewhere.com)
Date: 02/29/04


Date: Sat, 28 Feb 2004 23:51:59 GMT

Chris Smith wrote:
> someone wrote:
>
>>How can I bypass the "unknown certificate" exception? Is there a way to
>>define the certificate locally so that client recognizes it?
>
>
> There are a number of ways to handle this. If it's acceptable, you can
> install the certificate locally on the client using the keytool utility.
> See the docs for keytool; there are gazillions of options on how to do
> it.

By client, do you mean the local host or the HTTPS client class itself?

>
> If that's not an acceptable method (because you don't have access to the
> clients), then you can modify the code by creating a new socket factory.
> You would do this by getting an SSLContext, calling SSLContext.init with
> a different set of trust or key managers, and then calling its
> getSocketFactory method. You could then specify that new socket factory
> to create SSL sockets.

Could you give me more details on that approach, please?



Relevant Pages

  • Re: HTTPS client throws "javax.net.ssl.SSLHandshakeException: unknown certificate"
    ... install the certificate locally on the client using the keytool utility. ... If that's not an acceptable method (because you don't have access to the ... then you can modify the code by creating a new socket factory. ... a different set of trust or key managers, and then calling its ...
    (comp.lang.java.programmer)
  • Re: HTTPS client throws "javax.net.ssl.SSLHandshakeException: unknown certificate"
    ... > install the certificate locally on the client using the keytool utility. ... > If that's not an acceptable method (because you don't have access to the ... then you can modify the code by creating a new socket factory. ... > a different set of trust or key managers, and then calling its ...
    (comp.lang.java.programmer)
  • Re: "Return Value" for a form?
    ... Thank you for the expert advice, Dirk. ... >> to the calling form than referring to a text box on the calling form? ... >> I've written a form that asks a user to enter a client ID. ... Then your popup form would stick ...
    (microsoft.public.access.formscoding)
  • Re: "Return Value" for a form?
    ... "Joe Holzhauer" wrote in message ... > to the calling form than referring to a text box on the calling form? ... > I've written a form that asks a user to enter a client ID. ... Then your popup form would stick ...
    (microsoft.public.access.formscoding)
  • Re: .NET Client calling Java webservices. Slow Performance
    ... If the AXIS webservice is simple, you can also invoke it directly from VB ... > I am having performance issues with the .NET client calling the Java ...
    (microsoft.public.dotnet.framework.webservices)