in reply to Inconsistent errors when trying to establish SSL-connection

$browser->proxy(['http','https'],'http://myproxy:8080');

You are sending https requests via an http proxy. That strikes me as a Very Bad Idea. Why are you using a proxy in the first place?

Replies are listed 'Best First'.
Re^2: Inconsistent errors when trying to establish SSL-connection
by noxxi (Pilgrim) on Sep 30, 2016 at 14:51 UTC
    It is perfectly normal to proxy HTTPS with a a HTTP proxy. Proxying HTTPS is done by making a CONNECT request to establish a tunnel and the speak the normal TLS inside the tunnel. Thus you have still all the protections offered by TLS. See RFC 2817 section 5 for more details.

      Thanks for the pointer to RFC 2817, which explains a lot. It does still leave me wondering quite what the purpose is of using a proxy in such a situation. It can't be caching because the proxy cannot read the content and it can't be monitoring for the same reason. Any thoughts?

        A proxy is not necessarily a caching proxy. Often proxies are employed at firewalls or similar to enforce policies which sites can be visited and to filter traffic. In these cases use of a proxy is mandatory, i.e. there is no direct way to the internet.
Re^2: Inconsistent errors when trying to establish SSL-connection
by ddominnik (Novice) on Oct 10, 2016 at 11:06 UTC
    The proxy is mandatory to access the Internet or our Intranet, because it enforces data policies in my company. It doesn't serve any caching purpose.