]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/pages/account/TestCertificateAdd.java
add: password reset with assurance.
[gigi.git] / tests / org / cacert / gigi / pages / account / TestCertificateAdd.java
index 0b60cc8456b976e47322fff98c382331b5a37de8..820471f59763087e9a8b0e8df81107c4eadb957f 100644 (file)
@@ -139,7 +139,7 @@ public class TestCertificateAdd extends ClientTest {
         byte[] cer = IOUtils.readURL(uc.getInputStream());
         assertArrayEquals(cer, PEM.decode("CERTIFICATE", crt));
 
-        uc = authenticate(new URL(huc.getHeaderField("Location") + ".cer?install"));
+        uc = authenticate(new URL(huc.getHeaderField("Location") + ".cer?install&chain"));
         byte[] pkcs7 = IOUtils.readURL(uc.getInputStream());
         PKCS7 p7 = new PKCS7(pkcs7);
         byte[] sub = verifyChain(p7.getCertificates());
@@ -180,6 +180,7 @@ public class TestCertificateAdd extends ClientTest {
                     }
                 }
             }
+            assertNotNull(current);
             return current.getEncoded();
         }
     }