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 {
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;
<td></td>
<td>
<?=_Please list up to four services using your certificate. You need to have one of them up and using a valid SomeCA certificate or a specific self-signed certificate in order to pass this test?>:
- <?=_The self-signed certificate needs to contain your domain as CN and ${tokenValue} as organization unit. With -subj "/CN=<domain>/OU=${tokenValue}" OpenSSL command line utilities can generate such a certificate.?>:
+ <?=_The self-signed certificate needs to contain your domain as CN and ${tokenValue} as organization unit. With $!{openSSLHelp} OpenSSL command line utilities can generate such a certificate.?>:
<table>
<? foreach($ssl-services){ ?>
<tr><td><select name='ssl-type-<?=$i?>'>