summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-09-25 16:15:51 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-09-25 16:15:51 +0000
commit60ba965e3ad79e6fd5b97317ad00a2107c9d8528 (patch)
treeb4acf87667eca7ff27b20cf5dca2adeb7b82d894
parentab920d17f80c9ba9f48eb951057e262aa58d3dde (diff)
downloadurpmi-60ba965e3ad79e6fd5b97317ad00a2107c9d8528.tar
urpmi-60ba965e3ad79e6fd5b97317ad00a2107c9d8528.tar.gz
urpmi-60ba965e3ad79e6fd5b97317ad00a2107c9d8528.tar.bz2
urpmi-60ba965e3ad79e6fd5b97317ad00a2107c9d8528.tar.xz
urpmi-60ba965e3ad79e6fd5b97317ad00a2107c9d8528.zip
disable certificate checks on media with the right option
-rw-r--r--pod/urpmi.cfg.5.pod7
-rw-r--r--urpm/download.pm1
2 files changed, 8 insertions, 0 deletions
diff --git a/pod/urpmi.cfg.5.pod b/pod/urpmi.cfg.5.pod
index 85630b48..b3c6e60b 100644
--- a/pod/urpmi.cfg.5.pod
+++ b/pod/urpmi.cfg.5.pod
@@ -80,6 +80,13 @@ A comma-separated list of media names. By default, only those media will
be taken into account (that is, when you don't specify an alternate list
of media via the B<--media> command-line option.)
+=item B<disable-certificate-check>
+
+Disables checking of certificates when connecting to a https medium. By
+default the certificates are checked and the connection will fail if
+the certificate is invalid. This option shouldn't be used for maximum
+security.
+
=item B<downloader>
Specify which download program to use: B<wget> or B<curl>.
diff --git a/urpm/download.pm b/urpm/download.pm
index 75a8b3d5..87d9f5fd 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -855,6 +855,7 @@ sub _all_options {
dir => "$urpm->{cachedir}/partial",
proxy => get_proxy_($urpm, $medium),
metalink => $medium->{mirrorlist},
+ $medium->{disable-certificate-check}?"no-certificate-check":(),
$urpm->{debug} ? (debug => $urpm->{debug}) : (),
%$options,
);