delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/02/06/16:39:25

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EBA123887033
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=brian DOT inglis AT systematicsw DOT ab DOT ca
X-Authority-Analysis: v=2.4 cv=Yq/K+6UX c=1 sm=1 tr=0 ts=601f0c56
a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17
a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=mxXg7-MiAAAA:20 a=yMhMjlubAAAA:8
a=2oS-sqozAAAA:8 a=mHr6GJ5fAAAA:8 a=u_HfkT8S4LxpapGDYQQA:9 a=QEXdDO2ut3YA:10
a=SUS125LeZg4A:10 a=eGwVjFvZLeMA:10 a=sRI3_1zDfAgwuvI8zelB:22
a=WiNvAwpe8B6hZcWahKGt:22 a=N127T80v9oXcZuUJjtVr:22
To: cygwin AT cygwin DOT com
References: <BYAPR07MB59425A659F71A5C1246B588EB6B19 AT BYAPR07MB5942 DOT namprd07 DOT prod DOT outlook DOT com>
<595f4a6c-ad35-14ba-918e-06014bc7bb96 AT SystematicSw DOT ab DOT ca>
<BYAPR07MB5942B98E2713C42E29B5CF13B6B19 AT BYAPR07MB5942 DOT namprd07 DOT prod DOT outlook DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Organization: Systematic Software
Subject: Re: TLS version problem downloading mirrors.lst?
Message-ID: <df7cb758-3ce8-6d9f-df2c-c978fec7564d@SystematicSw.ab.ca>
Date: Sat, 6 Feb 2021 14:38:28 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.7.0
MIME-Version: 1.0
In-Reply-To: <BYAPR07MB5942B98E2713C42E29B5CF13B6B19@BYAPR07MB5942.namprd07.prod.outlook.com>
X-CMAE-Envelope: MS4xfB9zbCamCjtICIxZxR5BAerA8PD4b8fEP+QO2VHPivmYiNXl+i4yVZbGzTSb/pIi0YdaupdMPhbdBJS8rZbFvF0puBIEkaVW7vaxFvu4nD2w48LCB1U7
jAM75QtXFPu9rMdK5SKlCoZ22zGSvxbVE+Z4DLRFMmbI3h3/pFGoff4FJRnDEFexgXYgVG1DuGgDyVenb5gL0mqKS6lizjAXGEo=
X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 116Ld7eb003541

On 2021-02-06 11:23, Brad Wetmore via Cygwin wrote:
> On 2021-02-05 18:00, Brad Wetmore via Cygwin wrote:
>> I am trying to install a new instance of cygwin on Windows 2016 Server MSDN instance and am having problems downloading the mirrors list:
>>       2021/02/05 14:21:39 connection error: 12029 fetching https://cygwin.com/mirrors.lst
>> Using Wireshark and configuration options in Firefox, the root cause appears
>> to be that the setup-x86_64.exe is trying to use TLSv1.0 and SSLv3 to
>> download this file, but the download is failing as the response is a fatal
>> TLS alert: invalid protocol (2/70). Many Internet servers have been shutting
>> off TLSv1.0/SSLv3 in favor of TLSv1.2/1.3 these days, is this a case of that?
>> If so, the setup app needs to be updated.
> 
> Cygwin setup is a Windows app using Windows libraries built using open tools.
> 
>> I can specify a specific server URL after the mirrors.lst download fails and
>> can at least get something installed.
>> Is there any workaround to force setup-x86_64.exe to default to TLSv1.2/1.3?
>> Or is this something that the MSDN version of Windows 2016 Server has
>> configured?
>> More details/symptoms:
>> I am behind a firewall, but the proxy settings in IE allow me to tunnel out.
>> The corresponding "Use System Proxy Settings" in Firefox works fine. But when
>> I set the TLS settings in Firefox's "about:config" to use only TLSv1.0/SSLv3,
>> I see the same alert being returned to Firefox.
>> Wireshark reports:
>> CONNECT cygwin.com:443 HTTP1.0 ->
>> User-Agent: ...deleted
>> <- HTTP/1.0 200 Connection established
>> ClientHello ->
>> v1.0
>> <- Fatal Alert: 2/70
>> Supposedly SCHANNEL has TLSv1.2 on by default, but have no idea how the
>> setup app is written.
> 
> *NOT* by default on W2016 for SCHANNEL and may need enabled for both CLIENT and
> SERVER uses:
> 
> https://github.com/MicrosoftDocs/windowsserverdocs/issues/2783
> 
> https://social.technet.microsoft.com/Forums/en-US/cb1a695b-a15c-4fa7-94f0-1aaa20c1279d/enabling-tls-12-on-windows-server-2012-amp-2016?forum=winserversecurity
> 
> https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/manage-ssl-protocols-in-ad-fs#enable-and-disable-tls-12
> 
> Cygwin setup is written like most other Windows GUI apps, but you can clone the
> sources, modify, and build it using only Cygwin tools.
> 
>> https://docs.microsoft.com/en-us/windows/win32/secauthn/protocols-in-tls-ssl--schannel-ssp-
>> https://docs.microsoft.com/en-us/archive/blogs/kaushal/support-for-ssltls-protocols-on-windows
> 
>> My previous installs of cygwin aren't having any problems when trying to
>> incrementally add software, maybe the mirrors file is cached somewhere?
> 
> Are any of them running legacy Server instances?
> 
>> Thanks for any tips,
> 
> It's possible that W2016 might not support the root CA, support available TLS
> 1.2 Cipher suites (although that seems unlikely with the WEAK ratings), TLS 1.3,
> HTTP2, etc:
> 
>          https://www.ssllabs.com/ssltest/analyze.html?d=cygwin.com

 > Horray for conflicting information from MS.  🙂
 >
 > I will look at the IIS tool mentioned in one of the posts.
 >
 > My registry entries for SCHANNEL and the TLSv1.2 look to be the same between 
my previous Windows 2012 install and this new Windows 2016 one, so a little 
surprising.

Please check that your server TLS/SCHANNEL registry entries match those in the 
referenced article for TLS 1.2 well down the page in the Enabled case.

 > Do you happen to know if the cygwin.com server hosting cygwin.com/mirrors.lst 
was recently upgraded to no longer support the earlier TLS versions?

See the ssllabs test results and comments above.

 > Is mirrors.lst cached somewhere during the install, and where would I find 
it?  Just wondering why I can't seem to find it on different Windows instances 
but can still connect.

Every Cygwin install has /etc/setup/setup.rc which contains a copy of the then 
active mirrors list as well as your most recently selected mirror, and a list 
could even be baked into Cygwin setup at build time.

>>> My previous installs of cygwin aren't having any problems when trying to
>>> incrementally add software, maybe the mirrors file is cached somewhere?

 >> Are any of them running legacy Server instances?
 >
 > I think you are asking whether the mirror server (sonic.net) that I 
eventually contacted still has TLSv1.0 on.  Probably.  I can check that next week.

Are any of your previous installs of Cygwin also on legacy Server 2016 or 2012 
instances that you also have installed from the same source?

These SCHANNEL entries are *Disabled by Default* and have registry entries to 
that effect!

[Previous post restored: this is why keeping and trimming comments and replying 
inline is so important in this and similar groups, so everyone understands the 
context; TOFU/Jeopardy style is okay for org emails about simple business 
issues, and simple technical issues answered in a one liner.]

Check using:

$ regtool list -v 
/proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/SecurityProviders/SCHANNEL/Protocols/TLS 
1.2/Server/

and you can save the contents in a .reg file to diff vs other servers using:

$ regtool save -v 
/proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/SecurityProviders/SCHANNEL/Protocols/TLS 
1.2/Server/ \
	HKLM-SYS-CCS-C-SP-SCHANNEL-Protocols-TLS-1.2-Server.reg

Cygwin setup, mirrors list, key, and other critical information is fetched only 
from https://cygwin.com/ (unless something proxies or redirects that).

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019