Hi,
as of now, there are certain HTTPS protocol schemes used in apt in
conjunction with proxies.
a) for http, the requests are used with GET and plain URL over http transport
b) for https, CONNECT establishes a tunnel and then plain http over TLS
stream is used
What we don't have is option c) the user might trust his proxy and
want requests to be made in plain text (GET) but with https:// schema,
and the proxy gets the responsibility for HTTPS communication and
delivery of the content as plain HTTP response.
This should be configurable through some options. Some idea from mstone
and me in the recent debian-devel thread about #992692:
I would make it a list of trusted hosts and a special value ALL.
Best regards,
Eduard.