import org.cacert.gigi.output.template.IterableDataset;
import org.cacert.gigi.output.template.Template;
import org.cacert.gigi.ping.SSLPinger;
+import org.cacert.gigi.util.HTMLEncoder;
import org.cacert.gigi.util.RandomToken;
public class PingConfigForm extends Form {
private SSLType[] sslTypes = new SSLType[MAX_SSL_TESTS];
- private final Template t = new Template(PingConfigForm.class.getResource("PingConfigForm.templ"));
+ private static final Template t = new Template(PingConfigForm.class.getResource("PingConfigForm.templ"));
public PingConfigForm(HttpServletRequest hsr, Domain target) throws GigiApiException {
super(hsr);
protected void outputEmbeddableContent(PrintWriter out, Language l, Map<String, Object> vars) {
vars.put("tokenName", tokenName);
vars.put("tokenValue", tokenValue);
+ vars.put("openSSLHelp", "<code>" + HTMLEncoder.encodeHTML("-subj \"/CN=<domain>/OU=" + tokenValue + "\"") + "</code>");
vars.put("authEmails", new IterableDataset() {
int i = 0;