outputError(out, req, "You need to accept the CCA.");
return false;
}
+ CertificateProfile profile = CertificateProfile.getByName(req.getParameter("profile"));
+
System.out.println("issuing " + selectedDigest);
- result = new Certificate(LoginPage.getUser(req).getId(), "/commonName=CAcert WoT User", selectedDigest.toString(), this.csr, this.csrType, CertificateProfile.getById(1));
+ result = new Certificate(LoginPage.getUser(req).getId(), "/commonName=CAcert WoT User", selectedDigest.toString(), this.csr, this.csrType, profile);
result.issue().waitFor(60000);
return true;
}
</tr>
</thead>
<tbody>
+ <tr>
+ <td>
+ </td>
+ <td>
+ <?=_Key type?>:
+ <select name="profile">
+ <? foreach($profiles) { ?>
+ <option value="<?=$key?>"><?=$name?></option>
+ <? } ?>
+ </select>
+ </td>
+ </tr>
<tr>
<td><?=_Add?></td>
<td><?=_Address?></td>
<label for="expertbox"><?=_Show advanced options?></label>
</td>
</tr>
- <tr>
- <td>
- </td>
- <td>
- <select name="profile">
- <? foreach($profiles) { ?>
- <option value="<?=$key?>"><?=$name?></option>
- <? } ?>
- </select>
- </td>
- </tr>
-
<tr class="expert">
<td colspan="2" align="left">