[CentOS-devel] Using https repository through proxy

Wed May 25 09:51:44 UTC 2011
Julien.GILLES at sungard.com <Julien.GILLES at sungard.com>



for various reasons I am trying to install a private repository for
Centos 5, and I would like to use HTTPS only connections. The servers
must access to this repository through a proxy.


In the .repo file I have configured :



The proxy is defined correctly.


yum fails with: 


https://my.repository/pkg/stable/x86_64/repodata/repomd.xml: [Errno 14]
HTTP Error 501: Not Implemented

Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository:
Please verify its path and try again.


Using a fake proxy shows me that the request sent by yum is not correct
(ie GET https://... Instead of a classical CONNECT request).


I have found (thanks google) that this bug is known, seems related to
urllib2.py and httplib.py from python 2.4, but I can't find a way to
make it works.  The patches and the solution are quite old, and does not
seems to apply (or I am doing something wrong).


Futhermore the bug is known from Redhat
https://bugzilla.redhat.com/show_bug.cgi?id=208852 since a long time,
and according bugzilla has been corrected in 2006 !


Well, I don't know where to look at now, so help appreciated !



Julien Gilles.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20110525/f170c4b7/attachment-0004.html>