Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Updating SSL keystore


On Tue, Feb 7, 2017 at 9:10 AM, John English <john.foreign@xxxxxxxxx> wrote:
> I'm still playing with SslContextFactory and having some problems. This code
> bombs out with a NullPointerException:
>   SslContextFactory s = new SslContextFactory();
>   keystoreFile = new File(s.getKeyStorePath());
> I want to locate the keystore file (whose pathname is specified in
> start.ini) with having to duplicate the path as a config parameter. I
> thought this would do the trick, but I'm obviously mistaken. Can anyone tell
> me what I'm doing wrong here?

You have to detail what you're doing, as it's not clear.

Are you starting Jetty as a standalone server, and you want to add a
component to the server that reads the keystore path ?
Are you starting Jetty using embedded code ?

Simone Bordet
Developer advice, training, services and support
from the Jetty & CometD experts.

Back to the top