bugGNU Wget - Bugs: bug #36365, WGet returns incorrect error level...


bug #36365: WGet returns incorrect error level for self-signed SSL with --recursive option

Submitted by:  David Hooker <davidhooker>
Submitted on:  Wed 02 May 2012 12:35:22 AM UTC  
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: 1.11.4Operating System: Microsoft Windows
Reproducibility: Every TimeFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: No

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 02 May 2012 12:35:22 AM UTC, original submission:

(Sorry for reporting for an old version, but this is the latest Win32 build I have access to -- I don't have a toolchain to build on Win32, and my corporate antivirus is deleting http://code.google.com/p/osspack32/downloads/detail?name=wget.exe&can=2&q= because it has a slight negative reputation.)

I have a HTTPS server on DNS name "CA". It is using a self-signed cert to identity itself. When debugging my program that uses wget, I moved a bunch of files into a fresh directory for testing and tickled this bug.

If I run:
wget --recursive https://ca/
it fails with "self-signed cert encountered" and failing to connect - as it should. However, errorlevel is 0, causing my program to think that all went well.

wget https://ca/
fails the same way but returns errorlevel = 1.

wget should return a nonzero errorlevel in all cases it cannot connect to a HTTPS server due to bad/unspecified cert.

David Hooker <davidhooker>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by davidhooker (Submitted the item)

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1