Class EmbeddedWebServer.SSLSetup

java.lang.Object
org.bzdev.ejws.EmbeddedWebServer.SSLSetup
Enclosing class:
EmbeddedWebServer

public static class EmbeddedWebServer.SSLSetup extends Object
Setup parameters for an secure-socket server. The methods return the object created by the constructor so that one can chain the methods together for initialization. The default keystore and password are stored as a resource in the EJWS jar file. When this is used, there is a corresponding truststore in a file named ejwsCerts.jks. On Linux systems, this should be in the directory /usr/share/bzdev although its actual location may be system dependent. This truststore's password is "changeit". As it is in a directory owned by root, and is intended only for testing, this password should not be changed. ejwsCerts.jks is needed because without explicitly providing a keystore containing the server's certificate, a self-signed certificate will be used (a common practice during testing).