<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks for your answer!<div><br></div><div>Have you got a C example using the CONNECT request to the proxy?</div><div>In this case I want to avoid NAT.</div><div><br></div><div>It helped a lot!</div><div>Thanks.</div><div><br><div><hr id="stopSpelling">To: openssl-users@openssl.org<br>From: ted@convey.de<br>Date: Thu, 28 Jan 2016 12:47:48 +0100<br>Subject: Re: [openssl-users] Acessing a proxy with OpenSSL<br><br>
  
    
  
  
    <div class="ecxmoz-cite-prefix">Am 28.01.2016 um 12:02 schrieb Marcos
      Bontempo:<br>
    </div>
    <blockquote cite="mid:BLU168-W269DF062F6F3520DB05932CEDA0@phx.gbl">
      <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
      <div dir="ltr">
        <div>Hello,</div>
        <div><br>
        </div>
        <div>I'm using this example to make a SSL connection:
          <a class="ecxmoz-txt-link-freetext" href="http://fm4dd.com/openssl/sslconnect.htm" target="_blank">http://fm4dd.com/openssl/sslconnect.htm</a>.</div>
        <div>Now I want to also acess a HTTPS proxy. Is there a way to
          acess a HTTPS proxy with the OpenSSL library?</div>
        <div><br>
        </div>
        <div>Any tip will be very helpful,</div>
        <div>Thanks.</div>
      </div>
    </blockquote>
    <br>
    See <a class="ecxmoz-txt-link-freetext" href="http://wiki.squid-cache.org/Features/HTTPS" target="_blank">http://wiki.squid-cache.org/Features/HTTPS</a> and
    <a class="ecxmoz-txt-link-freetext" href="http://tools.ietf.org/rfc/rfc2817" target="_blank">http://tools.ietf.org/rfc/rfc2817</a>.<br>
    <br>
    AFAIK OpenSSL does not provide specific support for SSL via proxy,
    but you can set up a SSL connection using the CONNECT request to the
    proxy.<br>
    <br>
    Using a proxy for SSL connection does not make sense if you want to
    take advantage of a proxy's caching feature, since these CONNECT
    requests cannot be cached. This is by design.<br>
    <br>
    Using a proxy for SSL can be useful if you want to avoid NAT, or
    want to log, or filter, the connection targets.<br>
    <br>
    Hope this helps,<br>
    Ted<br>
    ;)<br>
    <pre class="ecxmoz-signature">-- 
PGP Public Key Information
Key ID = 7AFB8D26
Key fingerprint = 31B0 E029 BCF9 6605 DAC1  B2E1 0CC8 70F4 7AFB 8D26
</pre>
  

<br>_______________________________________________
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users</div></div>                                    </div></body>
</html>