import java.util.Map;
import java.util.Properties;
+import club.wpia.gigi.ocsp.OCSPResponder;
+
public class ServerConstants {
public enum Host {
* Hosts the certificate repository for the certificates generated
* during NRE. Also not served by Gigi.
*/
- CRT_REPO("g2.crt");
+ CRT_REPO("g2.crt"),
+ /**
+ * Hosts the {@link OCSPResponder}.
+ */
+ OCSP_RESPONDER("g2.ocsp");
private final String value;
secureBindPort = conf.getProperty("https.bindPort", conf.getProperty("https.port"));
bindPort = conf.getProperty("http.bindPort", conf.getProperty("http.port"));
- suffix = conf.getProperty("name.suffix", conf.getProperty("name.www", "www.wpia.local").substring(4));
+ suffix = conf.getProperty("name.suffix", "wpia.local");
HashMap<Host, String> hostnames = new HashMap<>();
for (Host h : Host.values()) {
hostnames.put(h, conf.getProperty("name." + h.getConfigName(), h.getHostDefaultPrefix() + "." + suffix));