DynMap ssl = config.get(DynMap.class, "ssl");
if (ssl != null) {
SSLContextBuilder builder = new SSLContextBuilder(false);
builder.keystoreFilename(ssl.get(String.class, "keystore"));
builder.keystorePassword(ssl.get(String.class, "keystore_password"));
builder.certificatePassword(ssl.get(String.class, "certificate_password"));
server.setSSLContext(builder.toSSLContext());
server.setSslPort(ssl.get(Integer.class, "port", server.getSslPort()));
}
server.config = config;