Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to force using wget #3

Open
ghost opened this issue Feb 27, 2017 · 8 comments
Open

A way to force using wget #3

ghost opened this issue Feb 27, 2017 · 8 comments

Comments

@ghost
Copy link

ghost commented Feb 27, 2017

The copy of curl included with my router firmware does not support https. The copy of wget in it does, but even if I use wget to execute get.acme.sh, the script still searches for curl and uses it by default.

I know I have a unique use-case trying to get an SSL cert for a router, but it would be nice if this was supported. This is (as far as I know) the only shell script style ACME client that doesn't require bash or some other more advanced shell. The router runs busybox, which of course only implements ash.

@Neilpang
Copy link
Member

@ColtonDRG

Yes, I will consider it.

For now, as a temp workaround, please add a file in you home dir: ~/.curlrc

insecure

Then your curl should be able to work.

@Neilpang
Copy link
Member

Please give me the output if you still have problems.

@ghost
Copy link
Author

ghost commented Feb 27, 2017

Same error: curl: (1) Protocol "https" not supported or disabled in libcurl

@ghost
Copy link
Author

ghost commented Feb 27, 2017

fwiw, if I manually make it use wget by editing get.sh and running it, I get the following.

Connecting to raw.githubusercontent.com (151.101.48.133:443)
-                    100% |*******************************|   135k  0:00:00 ETA
[Mon Feb 27 07:39:42 CET 2017] Installing from online archive.
[Mon Feb 27 07:39:42 CET 2017] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
[Mon Feb 27 07:39:42 CET 2017] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 1
[Mon Feb 27 07:39:42 CET 2017] Download error.

@Neilpang
Copy link
Member

Neilpang commented Feb 27, 2017

@ColtonDRG

fixed.

export  ACME_USE_WGET=1
wget -O-  https://get.acme.sh  | sh

@ghost
Copy link
Author

ghost commented Mar 1, 2017

Ok, now I'm getting a different problem. Perhaps I should give up on getting a certificate for my router (at least from my router, getting one on another computer and uploading it could still work).

root@router:/tmp/home/root# export  ACME_USE_WGET=1
root@router:/tmp/home/root# wget -O-  https://get.acme.sh  | sh
Connecting to get.acme.sh (195.154.91.106:443)
-                    100% |*******************************|   705   0:00:00 ETA
Connecting to raw.githubusercontent.com (151.101.192.133:443)
-                    100% |*******************************|   136k  0:00:00 ETA
[Wed Mar  1 05:19:33 CET 2017] Installing from online archive.
[Wed Mar  1 05:19:33 CET 2017] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
wget: unrecognized option `--help'
BusyBox v1.25.0 (2016-12-05 06:35:19 CET) multi-call binary.

Usage: wget [-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT] [-T SEC] URL...

Retrieve files via HTTP or FTP

	-s	Spider mode - only check file existence
	-c	Continue retrieval of aborted transfer
	-q	Quiet
	-P DIR	Save to DIR (default .)
	-T SEC	Network read timeout is SEC seconds
	-O FILE	Save to FILE ('-' for stdout)
	-U STR	Use STR for User-Agent header
	-Y	Use proxy ('on' or 'off')
wget: unrecognized option `--user-agent='
BusyBox v1.25.0 (2016-12-05 06:35:19 CET) multi-call binary.

Usage: wget [-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT] [-T SEC] URL...

Retrieve files via HTTP or FTP

	-s	Spider mode - only check file existence
	-c	Continue retrieval of aborted transfer
	-q	Quiet
	-P DIR	Save to DIR (default .)
	-T SEC	Network read timeout is SEC seconds
	-O FILE	Save to FILE ('-' for stdout)
	-U STR	Use STR for User-Agent header
	-Y	Use proxy ('on' or 'off')
[Wed Mar  1 05:19:33 CET 2017] Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code: 1
[Wed Mar  1 05:19:34 CET 2017] Download error.
root@router:/tmp/home/root# 

@Neilpang
Copy link
Member

Neilpang commented Mar 1, 2017

Please check if your wget has a --header option:

wget  --header "a:b"  https://www.google.com

@ghost
Copy link
Author

ghost commented Mar 1, 2017

It does not.

root@router:/tmp/home/root# wget --header "a:b" https://www.google.com
wget: unrecognized option `--header'
BusyBox v1.25.0 (2016-12-05 06:35:19 CET) multi-call binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant