title: Jsoup HTTPS connecting
body: <p>So, I'm trying to log into a site, save the cookies and connect to another site while providing the cookies and proceed to scrape the website. All using Jsoup and regular java (I plan to move to Android later on). My problem is, that the site with the loginform is using https and there I am getting <a href="http://pastebin.com/hK0wsVzR" rel="nofollow noreferrer">a ton of errors</a>. After searching around I found <a href="https://stackoverflow.com/questions/7744075">this stackoverflow question</a>. The method described involving getting the SSL certificate from the login-site and change the extension from .crt to .jks. However, I keep getting the errors and therefore unable to make it work. Here's my code</p>
  
  <pre><code>public static void main(String args[]) throws IOException {
  
                  //Log in
                  Connection.Response login = Jsoup.connect("https://login.emu.dk")
                                  .data("login", "myUsername")
                                  .data("pass", "myPassword")
                                  .method(Method.POST)
                                  .execute();
  
                  //Keep logged in
                  Map&lt;String,String&gt; loginCookies = login.cookies();
  
                  ArrayList&lt;Lesson&gt; unsorted = new ArrayList&lt;Lesson&gt;();
                  URL elevplan = new URL("https://elevplan.dk");
                  CSVParser csvParser = new CSVParser();
  
                  System.setProperty("javax.net.ssl.trustStore", "/Users/philipjakobsen/Desktop/login.emu.dk.jks");
                  System.setProperty("javax.net.ssl.trustStore", "/Users/philipjakobsen/Desktop/login.emu2.dk.jks");
  
                  Document doc = Jsoup.connect("https://elevplan.dk")
                  .cookies(loginCookies)
                  .get();
  </code></pre>
  
  <p>So, does anyone know how to allow Jsoup to make https connections? As earlier said, I would like to "port" my application to Android, and in this scenario I don't think it is possible to use a static certificate(?). </p>
  
  <p>Thanks in advance.</p>