title: apache httpclient use https proxy: peer not authenticated
body: <p>i'm trying to use one of the big list of free https-proxy-servers on hidemyass.com (<a href="https://hidemyass.com/proxy-list/search-225434" rel="nofollow">https://hidemyass.com/proxy-list/search-225434</a>) with apache httpclient 4.1. i've now tried nearly all of them, but i always get <strong>javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated</strong>
  so i googled and found out that no server has peer certificates, for example: </p>
  
  <pre><code>&gt; openssl s_client -tls1 -showcerts -connect 109.75.178.230:3128  
  CONNECTED(00000003)
  139856907785896:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:s3_pkt.c:337:
  
  no peer certificate available
  
  No client certificate CA names sent
  
  SSL handshake has read 5 bytes and written 7 bytes
  
  New, (NONE), Cipher is (NONE)
  Secure Renegotiation IS NOT supported
  Compression: NONE
  Expansion: NONE
  SSL-Session:
      Protocol  : TLSv1
      Cipher    : 0000
      Session-ID: 
      Session-ID-ctx: 
      Master-Key: 
      Key-Arg   : None
      PSK identity: None
      PSK identity hint: None
      SRP username: None
      Start Time: 1393183549
      Timeout   : 7200 (sec)
      Verify return code: 0 (ok)
  </code></pre>
  
  <p>when i tried to switch to http on the same port it works, but in the proxy-list on hidemyass the type is https. so i don't know what to do now... please help.</p>
  
  <p>if you need to have a look at my code: <a href="http://paste.debian.net/83674/" rel="nofollow">http://paste.debian.net/83674/</a></p>