Is there a shorter version of wget --no-check-certificate option?

When I try to use wget on an HTTPS site, I need to add:

 wget --no-check-certificate 

This is rather long, so does a shortcut exist?

2 Answers

From what I can see there's no shorter version of the --no-check-certificate option.

So you could always make an alias to it. alias wgetncc='wget --no-check-certificate' (Change 'wgetncc' to whatever you please.)

Type that into the command line and after that, every time you run wgetncc it will be a shortcut to wget --no-check-certificate

If you want this to be an alias every time you login, you will have to place this in an alias file or something equivalent. It depends on the shell you are using.

5

Try this: (assumes *nix)

echo "check_certificate = off" >> ~/.wgetrc

Then ever after, wget will act like you specified the --no-check-certificate switch. More info at or

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like