View previous topic :: View next topic |
Author |
Message |
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri Jun 01, 2007 7:22 pm Post subject: [ebuild/wget] - --no-check-certificate - (Open) |
|
|
Hello,
I write ebuilds for my personal use every now and then, but I am not a master on the issue. I searched for a couple of days, but can't seem to find any clue about this thing. I don't know if it is even possible.
Is there any way to download from an https url like this one, without having to do it manually with wget --no-check-certificate?
Code: |
SRC_URI="https://marrat.homelinux.org/marratwiki/D3lphin?action=AttachFile&do=get&target=${P}.tar.gz"
|
Code: |
Resolviendo marrat.homelinux.org... 88.198.134.171
Connecting to marrat.homelinux.org|88.198.134.171|:443... conectado.
ERROR: Certificate verification error for marrat.homelinux.org: self signed certificate
To connect to marrat.homelinux.org insecurely, use `--no-check-certificate'.
No se pudo establecer la conexión SSL.
No digest file available and download failed.
|
I have an ebuild for d3lphin, and it just works, but you need to put that file into distfiles manually. I would like to know if there is a way to address that annoying issue (other than asking the author to put it under regular http).
Thanks in advance. |
|
Back to top |
|
|
ricce_n Tux's lil' helper
Joined: 01 Jul 2004 Posts: 130
|
Posted: Fri Jun 01, 2007 9:10 pm Post subject: |
|
|
Best option: Ask the author to get correct up to date certificates signed by a known CA.
Alternative solution: add:
Code: |
FETCHCOMMAND="/usr/bin/wget --no-check-certificate \${URI} -P \${DISTFILES}"
RESUMECOMMAND="/usr/bin/wget -c --no-check-certificate \${URI} -P \${DISTFILES}"
|
to /etc/make.conf |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri Jun 01, 2007 9:17 pm Post subject: |
|
|
ricce_n wrote: | Best option: Ask the author to get correct up to date certificates signed by a known CA. |
Yes, I though of that. I was just wondering if there was any other way around.
Quote: |
Alternative solution: add:
Code: |
FETCHCOMMAND="/usr/bin/wget --no-check-certificate \${URI} -P \${DISTFILES}"
RESUMECOMMAND="/usr/bin/wget -c --no-check-certificate \${URI} -P \${DISTFILES}"
|
to /etc/make.conf |
Not nice, I can do that, but my plan is to post this in bugzilla in case anyone wants to use it, so I wanted to clean it a bit before that. |
|
Back to top |
|
|
upengan78 l33t
Joined: 27 Jun 2007 Posts: 711 Location: IL
|
Posted: Thu Mar 28, 2013 7:35 pm Post subject: |
|
|
Hi,
It looks like I need some help in a similar issue I am having.
Code: |
ebuild /var/lib/layman/bgo-overlay/app-misc/liveusb-creator/liveusb-creator-3.9.ebuild digest
>>> Downloading 'http://mirror.mcs.anl.gov/pub/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
--2013-03-28 14:33:20-- http://mirror.mcs.anl.gov/pub/gentoo/distfiles/liveusb-creator-3.9.tar.bz2
Resolving mirror.mcs.anl.gov (mirror.mcs.anl.gov)... 146.137.96.7, 2620:0:dc0:1800:214:4fff:fe7d:1b9
Connecting to mirror.mcs.anl.gov (mirror.mcs.anl.gov)|146.137.96.7|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-03-28 14:33:20 ERROR 404: Not Found.
>>> Downloading 'rsync://mirror.mcs.anl.gov/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
receiving incremental file list
rsync: link_stat "/distfiles/liveusb-creator-3.9.tar.bz2" (in gentoo) failed: No such file or directory (2)
sent 4 bytes received 8 bytes 24.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1518) [Receiver=3.0.9]
No digest file available and download failed.
>>> Downloading 'ftp://mirror.mcs.anl.gov/pub/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
--2013-03-28 14:33:20-- ftp://mirror.mcs.anl.gov/pub/gentoo/distfiles/liveusb-creator-3.9.tar.bz2
=> “/usr/portage/distfiles/liveusb-creator-3.9.tar.bz2”
Resolving mirror.mcs.anl.gov (mirror.mcs.anl.gov)... 146.137.96.7, 2620:0:dc0:1800:214:4fff:fe7d:1b9
Connecting to mirror.mcs.anl.gov (mirror.mcs.anl.gov)|146.137.96.7|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/gentoo/distfiles ... done.
==> SIZE liveusb-creator-3.9.tar.bz2 ... done.
==> PASV ... done. ==> RETR liveusb-creator-3.9.tar.bz2 ...
No such file “liveusb-creator-3.9.tar.bz2”.
>>> Downloading 'ftp://gentoo.mirrors.tds.net/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
--2013-03-28 14:33:20-- ftp://gentoo.mirrors.tds.net/gentoo/distfiles/liveusb-creator-3.9.tar.bz2
=> “/usr/portage/distfiles/liveusb-creator-3.9.tar.bz2”
Resolving gentoo.mirrors.tds.net (gentoo.mirrors.tds.net)... 216.165.129.134
Connecting to gentoo.mirrors.tds.net (gentoo.mirrors.tds.net)|216.165.129.134|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /gentoo/distfiles ...
No such directory “gentoo/distfiles”.
>>> Downloading 'rsync://gentoo.mirrors.tds.net/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
receiving incremental file list
rsync: link_stat "/distfiles/liveusb-creator-3.9.tar.bz2" (in gentoo) failed: No such file or directory (2)
sent 4 bytes received 6 bytes 1.82 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1518) [Receiver=3.0.9]
No digest file available and download failed.
>>> Downloading 'http://gentoo.mirrors.tds.net/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
--2013-03-28 14:33:26-- http://gentoo.mirrors.tds.net/gentoo/distfiles/liveusb-creator-3.9.tar.bz2
Resolving gentoo.mirrors.tds.net (gentoo.mirrors.tds.net)... 216.165.129.134
Connecting to gentoo.mirrors.tds.net (gentoo.mirrors.tds.net)|216.165.129.134|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-03-28 14:33:26 ERROR 404: Not Found.
>>> Downloading 'https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.9.tar.bz2'
--2013-03-28 14:33:27-- https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.9.tar.bz2
Resolving fedorahosted.org (fedorahosted.org)... 66.135.62.187
Connecting to fedorahosted.org (fedorahosted.org)|66.135.62.187|:443... connected.
ERROR: certificate common name “*.fedorahosted.org” doesn’t match requested host name “fedorahosted.org”.
To connect to fedorahosted.org insecurely, use ‘--no-check-certificate’.
!!! Couldn't download 'liveusb-creator-3.9.tar.bz2'. Aborting.
!!! Fetch failed for liveusb-creator-3.9.tar.bz2, can't update Manifest
|
[/code] |
|
Back to top |
|
|
upengan78 l33t
Joined: 27 Jun 2007 Posts: 711 Location: IL
|
Posted: Thu Mar 28, 2013 7:39 pm Post subject: |
|
|
When I add the FETCHCOMMAND and RESUMECOMMAND provided in the old post, I get this
Code: | ebuild /var/lib/layman/bgo-overlay/app-misc/liveusb-creator/liveusb-creator-3.9.ebuild digest
!!! FETCHCOMMAND does not contain the required ${FILE} parameter.
!!! RESUMECOMMAND does not contain the required ${FILE} parameter.
!!! Refer to the make.conf(5) man page for information about how to
!!! correctly specify FETCHCOMMAND and RESUMECOMMAND.
>>> Downloading 'http://mirror.mcs.anl.gov/pub/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
--2013-03-28 14:37:29-- http://mirror.mcs.anl.gov/pub/gentoo/distfiles/liveusb-creator-3.9.tar.bz2
Resolving mirror.mcs.anl.gov... 146.137.96.7, 2620:0:dc0:1800:214:4fff:fe7d:1b9
Connecting to mirror.mcs.anl.gov|146.137.96.7|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-03-28 14:37:29 ERROR 404: Not Found.
No digest file available and download failed.
>>> Downloading 'rsync://mirror.mcs.anl.gov/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
receiving incremental file list
rsync: link_stat "/distfiles/liveusb-creator-3.9.tar.bz2" (in gentoo) failed: No such file or directory (2)
sent 4 bytes received 8 bytes 24.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1518) [Receiver=3.0.9]
No digest file available and download failed.
!!! FETCHCOMMAND does not contain the required ${FILE} parameter.
!!! RESUMECOMMAND does not contain the required ${FILE} parameter.
!!! Refer to the make.conf(5) man page for information about how to
!!! correctly specify FETCHCOMMAND and RESUMECOMMAND.
>>> Downloading 'ftp://mirror.mcs.anl.gov/pub/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
--2013-03-28 14:37:29-- ftp://mirror.mcs.anl.gov/pub/gentoo/distfiles/liveusb-creator-3.9.tar.bz2
=> ‘liveusb-creator-3.9.tar.bz2’
Resolving mirror.mcs.anl.gov... 146.137.96.7, 2620:0:dc0:1800:214:4fff:fe7d:1b9
Connecting to mirror.mcs.anl.gov|146.137.96.7|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/gentoo/distfiles ... done.
==> SIZE liveusb-creator-3.9.tar.bz2 ... done.
==> PASV ... done. ==> RETR liveusb-creator-3.9.tar.bz2 ...
No such file ‘liveusb-creator-3.9.tar.bz2’.
No digest file available and download failed.
!!! FETCHCOMMAND does not contain the required ${FILE} parameter.
!!! RESUMECOMMAND does not contain the required ${FILE} parameter.
!!! Refer to the make.conf(5) man page for information about how to
!!! correctly specify FETCHCOMMAND and RESUMECOMMAND.
>>> Downloading 'ftp://gentoo.mirrors.tds.net/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
--2013-03-28 14:37:30-- ftp://gentoo.mirrors.tds.net/gentoo/distfiles/liveusb-creator-3.9.tar.bz2
=> ‘liveusb-creator-3.9.tar.bz2’
Resolving gentoo.mirrors.tds.net... 216.165.129.134
Connecting to gentoo.mirrors.tds.net|216.165.129.134|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /gentoo/distfiles ...
No such directory ‘gentoo/distfiles’.
No digest file available and download failed.
>>> Downloading 'rsync://gentoo.mirrors.tds.net/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
receiving incremental file list
rsync: link_stat "/distfiles/liveusb-creator-3.9.tar.bz2" (in gentoo) failed: No such file or directory (2)
sent 4 bytes received 6 bytes 6.67 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1518) [Receiver=3.0.9]
No digest file available and download failed.
!!! FETCHCOMMAND does not contain the required ${FILE} parameter.
!!! RESUMECOMMAND does not contain the required ${FILE} parameter.
!!! Refer to the make.conf(5) man page for information about how to
!!! correctly specify FETCHCOMMAND and RESUMECOMMAND.
>>> Downloading 'http://gentoo.mirrors.tds.net/gentoo/distfiles/liveusb-creator-3.9.tar.bz2'
--2013-03-28 14:37:32-- http://gentoo.mirrors.tds.net/gentoo/distfiles/liveusb-creator-3.9.tar.bz2
Resolving gentoo.mirrors.tds.net... 216.165.129.134
Connecting to gentoo.mirrors.tds.net|216.165.129.134|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-03-28 14:37:32 ERROR 404: Not Found.
No digest file available and download failed.
!!! FETCHCOMMAND does not contain the required ${FILE} parameter.
!!! RESUMECOMMAND does not contain the required ${FILE} parameter.
!!! Refer to the make.conf(5) man page for information about how to
!!! correctly specify FETCHCOMMAND and RESUMECOMMAND.
>>> Downloading 'https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.9.tar.bz2'
--2013-03-28 14:37:32-- https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.9.tar.bz2
Resolving fedorahosted.org... 66.135.62.187
Connecting to fedorahosted.org|66.135.62.187|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 142997 (140K) [application/x-bzip2]
liveusb-creator-3.9.tar.bz2: Permission denied
Cannot write to ‘liveusb-creator-3.9.tar.bz2’ (Success).
No digest file available and download failed.
!!! Couldn't download 'liveusb-creator-3.9.tar.bz2'. Aborting.
!!! Fetch failed for liveusb-creator-3.9.tar.bz2, can't update Manifest
|
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Thu Mar 28, 2013 9:07 pm Post subject: |
|
|
upengan78 wrote: | It looks like I need some help in a similar issue I am having. | Could you explain why you believe this to be the same problem? The thread starter five years ago had a certificate validation problem, but I see no sign of validation problems in the output you provided. |
|
Back to top |
|
|
upengan78 l33t
Joined: 27 Jun 2007 Posts: 711 Location: IL
|
Posted: Thu Mar 28, 2013 9:10 pm Post subject: |
|
|
So you don't see this in my o/p ?
Code: | ERROR: certificate common name “*.fedorahosted.org” doesn’t match requested host name “fedorahosted.org”.
To connect to fedorahosted.org insecurely, use ‘--no-check-certificate’. |
Anyway, the problem is solved. I downloaded the file manually. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Thu Mar 28, 2013 10:53 pm Post subject: |
|
|
upengan78 wrote: | So you don't see this in my o/p ?
Code: | ERROR: certificate common name “*.fedorahosted.org” doesn’t match requested host name “fedorahosted.org”.
To connect to fedorahosted.org insecurely, use ‘--no-check-certificate’. |
| Right, I missed that buried in all the other failures you posted. |
|
Back to top |
|
|
|