]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/dbObjects/TestCertificate.java
upd: factor out default client certificate profile
[gigi.git] / tests / org / cacert / gigi / dbObjects / TestCertificate.java
index 8e7f8efee3bfe1aeb1f79f8397b3d3e7eb6f9630..3b4a63b4b9d7497de7fa273ac4bff80ad88b9f05 100644 (file)
@@ -17,7 +17,7 @@ public class TestCertificate extends ClientBusinessTest {
     public void testSetLoginEnabled() throws GeneralSecurityException, IOException, GigiApiException {
         KeyPair kp = generateKeypair();
         String key = generatePEMCSR(kp, "CN=testmail@example.com");
-        Certificate c = new Certificate(u, u, Certificate.buildDN("CN", "testmail@example.com"), Digest.SHA256, key, CSRType.CSR, CertificateProfile.getById(1));
+        Certificate c = new Certificate(u, u, Certificate.buildDN("CN", "testmail@example.com"), Digest.SHA256, key, CSRType.CSR, getClientProfile());
 
         assertFalse(c.isLoginEnabled());
         c.setLoginEnabled(true);