glibc-all-in-one icon indicating copy to clipboard operation
glibc-all-in-one copied to clipboard

add --no-check-certificate in download

Open H4lo opened this issue 3 years ago • 2 comments

To avoid certificate problems, need to add '--no-check-certificate' in the download script:

  wget --no-check-certificate "$url"  -O debs/$deb_name || die "Failed to download package from $url"
  echo "  -> Extracting libc binary package"

  mkdir libs/$id
  ./extract debs/$deb_name libs/$id
  echo "  -> Package saved to libs/$id"

  # download debug info package
  local url="$SOURCE/$dbg_name"
  echo "  -> Location: $url"
  echo "  -> Downloading libc debug package"
  wget --no-check-certificate "$url" 2>/dev/null -O debs/$dbg_name || die "Failed to download package from $url"

H4lo avatar Sep 30 '21 15:09 H4lo

I have also met this problem. However, this looks more like the target website's fault. Maybe --no-check-certificate could cause some security problems, and we should add it by ourselves ?

Non1187 avatar Mar 09 '22 07:03 Non1187

Anyway, it would be better if the details of certificate problems could be informed, rather than getting a download error.

Non1187 avatar Mar 09 '22 07:03 Non1187