title: peer not authenticated - Rally javatoolkit error
body: <p>I have been using the rally javatoolkit for a while to add testcases, test results etc without any error. But all of a sudden it started throwing error as 
  " <code>javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated</code>" . I have referred the pages "<a href="https://stackoverflow.com/questions/14506119/rally-rest-api-java-toolkit-sslpeerunverifiedexception-peer-not-authenticated">rally rest api java toolkit sslpeerunverifiedexception : peer not authenticated</a>" , <a href="https://stackoverflow.com/questions/14506119/rally-rest-api-java-toolkit-sslpeerunverifiedexception-peer-not-authenticated/14507182#14507182">rally rest api java toolkit sslpeerunverifiedexception : peer not authenticated</a> but they didn't help me. Can someone help me with what I am doing wrong. Also If i need to download a certificate please help me for windows system. Thanks in advance. my code is as below:</p>
  
  <pre><code>import com.rallydev.rest.RallyRestApi;
  import com.rallydev.rest.client.HttpClient;
  import com.rallydev.rest.request.GetRequest;
  import com.rallydev.rest.response.GetResponse;
  import java.io.IOException;
  import java.net.URI;
  import java.net.URISyntaxException;
  import java.security.cert.CertificateException;
  import java.security.cert.X509Certificate;
  
  import org.apache.http.conn.ssl.SSLSocketFactory;
  import org.apache.http.conn.ssl.TrustStrategy;
  import org.apache.http.conn.scheme.Scheme;
  
  
  public class ConnnectionTestWithHTTPClient {
  
      public static void main(String[] args) throws URISyntaxException, IOException {
  
  
          String host = "https://rally1.rallydev.com";
          String apiKey = "_abc123";
          String applicationName = "Connnection Test With HTTPClient";
          RallyRestApi restApi = new RallyRestApi(new URI(host),apiKey);
          restApi.setApplicationName(applicationName); 
          //restApi.setProxy(new URI("http://myproxy.mycompany.com"), "MyProxyUsername", "MyProxyPassword");  //SET PROXY SETTINS HERE
          HttpClient client = restApi.getClient();
          try {
              SSLSocketFactory sf = new SSLSocketFactory(new TrustStrategy() {
                  public boolean isTrusted(X509Certificate[] certificate, String authType)
                      throws CertificateException {
                      //trust all certs
                      return true;
                  }
              }, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
              client.getConnectionManager().getSchemeRegistry().register(new Scheme("https", 443, sf));
  
              String workspaceRef = "/workspace/12345"; //USE VALID WORKSPACE OID 
              GetRequest getRequest = new GetRequest(workspaceRef);
              GetResponse getResponse = restApi.get(getRequest);
              System.out.println(getResponse.getObject());
          } catch (Exception e) {
              System.out.println(e);
          } finally {
              restApi.close();
          }   
      } 
  }
  </code></pre>
  
  <p>Also adding to the issue, i found a different error when I changed the port from 443 to 8443. i get "<code>java.io.IOException: HTTP/1.1 522 Origin Connection Time-out</code>" when i use 8443.</p>