Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Changing some ssl attributes on the fly

Hi,

On Mon, Feb 6, 2017 at 10:10 AM, Jaap de Jong <jaap.dejong@xxxxxxxxx> wrote:
> Hi All,
>
> In an existing and running HttpClient(sslContextFactory), I want to update 2
> ssl attributes:
>
>         sslContextFactory.setValidateCerts(false);
>         sslContextFactory.setTrustAll(true);
>
> And at another point in time I want to set that to the opposite.
>
> Is this a valid operation, or do I need to create a new HttpClient for every
> sslContextFactory update?

You need to reload the SslContextFactory and change the attribute you
want in the Consumer.
See https://github.com/eclipse/jetty.project/issues/918.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top