X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2FdbObjects%2FCertificate.java;h=5dfaa5d6a1709ae88727979633fc594b58e7fe86;hb=2f50dbb24105e6345329b8e9ecb5ef4d67ab2a8c;hp=541272bdae1fb43a7e9b60186aaed84054309447;hpb=ec155eec51606c19970c9099ef23f700fb6aa53a;p=gigi.git diff --git a/src/org/cacert/gigi/dbObjects/Certificate.java b/src/org/cacert/gigi/dbObjects/Certificate.java index 541272bd..5dfaa5d6 100644 --- a/src/org/cacert/gigi/dbObjects/Certificate.java +++ b/src/org/cacert/gigi/dbObjects/Certificate.java @@ -141,7 +141,7 @@ public class Certificate implements IdCachable { this.owner = owner; this.dn = dn; if (dn.size() == 0) { - throw new GigiApiException("DN must not be empty"); + throw new GigiApiException("DN must not be empty."); } dnString = stringifyDN(dn); this.md = md; @@ -287,7 +287,7 @@ public class Certificate implements IdCachable { if (getStatus() != CertificateStatus.DRAFT) { throw new IllegalStateException(); } - Notary.writeUserAgreement(actor, "CCA", "issue certificate", "", true, 0); + Notary.writeUserAgreement(actor, "ToS", "certificate issuance", "", true, 0); return Job.sign(this, start, period);