X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Faccount%2FCertificateIssueForm.java;h=847aac88caeac6bae89fd09d2d79adabeb28a2be;hb=ba85a7c9ccd88b2a2b3e8d2f7f350019a24cb65e;hp=aee6cddf2f6bc61920e45abb65d3b65d529e1789;hpb=48b552dcb661a6ba039e6b28bea50655667c70f9;p=gigi.git diff --git a/src/org/cacert/gigi/pages/account/CertificateIssueForm.java b/src/org/cacert/gigi/pages/account/CertificateIssueForm.java index aee6cddf..847aac88 100644 --- a/src/org/cacert/gigi/pages/account/CertificateIssueForm.java +++ b/src/org/cacert/gigi/pages/account/CertificateIssueForm.java @@ -20,9 +20,9 @@ import org.cacert.gigi.CertificateProfile; import org.cacert.gigi.Digest; import org.cacert.gigi.EmailAddress; import org.cacert.gigi.GigiApiException; -import org.cacert.gigi.Language; import org.cacert.gigi.User; import org.cacert.gigi.crypto.SPKAC; +import org.cacert.gigi.localisation.Language; import org.cacert.gigi.output.Form; import org.cacert.gigi.output.template.HashAlgorithms; import org.cacert.gigi.output.template.IterableDataset; @@ -116,8 +116,10 @@ public class CertificateIssueForm extends Form { 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; }