final X509Certificate ce = c.cert();
HttpURLConnection connection = (HttpURLConnection) new URL("https://" + getServerName().replaceFirst("^www.", "api.") + "/account/certs/new").openConnection();
authenticateClientCert(pk, ce, connection);
final X509Certificate ce = c.cert();
HttpURLConnection connection = (HttpURLConnection) new URL("https://" + getServerName().replaceFirst("^www.", "api.") + "/account/certs/new").openConnection();
authenticateClientCert(pk, ce, connection);