]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/api/IssueCert.java
add: split API and add CATS import API
[gigi.git] / tests / org / cacert / gigi / api / IssueCert.java
index 65fd3f82112fc4555d43726e6f1df44eb30ca01a..faa8618e246e27ccc282d95b56f2d62f065a6170 100644 (file)
@@ -39,7 +39,7 @@ public class IssueCert extends ClientTest {
         final PrivateKey pk = kp.getPrivate();
         c.issue(null, "2y", u).waitFor(60000);
         final X509Certificate ce = c.cert();
-        HttpURLConnection connection = (HttpURLConnection) new URL("https://" + getServerName().replaceFirst("^www.", "api.") + "/account/certs/new").openConnection();
+        HttpURLConnection connection = (HttpURLConnection) new URL("https://" + getServerName().replaceFirst("^www.", "api.") + CreateCertificate.PATH).openConnection();
         authenticateClientCert(pk, ce, connection);
         connection.setDoOutput(true);
         OutputStream os = connection.getOutputStream();