@mkfmnn: Thanks for sharing your solution.
- martin
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
ctldl.windowsupdate.com, to refresh root certificates and/or check certificate transparency logs?
crt.r2m04.amazontrust.com to download the intermediate certificate:: Stop ctldl.windowsupdate.com (Automatic Root Update + disallowed CTL)
reg add "HKLM\SOFTWARE\Policies\Microsoft\SystemCertificates\AuthRoot" /v DisableRootAutoUpdate /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\SystemCertificates\AuthRoot" /v EnableDisallowedCertAutoUpdate /t REG_DWORD /d 0 /f
:: Fail any remaining AIA/CRL/OCSP fetch fast instead of hanging (defaults are 15s / 20s)
reg add "HKLM\SOFTWARE\Policies\Microsoft\SystemCertificates\ChainEngine\Config" /v ChainUrlRetrievalTimeoutMilliseconds /t REG_DWORD /d 500 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\SystemCertificates\ChainEngine\Config" /v ChainRevAccumulativeUrlRetrievalTimeoutMilliseconds /t REG_DWORD /d 1000 /f
s3.amazonaws.com on a fresh instance which I had forgotten about when starting this thread, which I'm trying to troubleshoot now. The EC2 instance does have the Amazon Root certificates in its store by default, but not the intermediate. Claude thinks: "Your AIA call to crt.r2m04.amazontrust.com means WinSCP's Windows-store verification path isn't using the handshake-supplied intermediate — it's handing CryptoAPI only the leaf, so CryptoAPI goes looking for the issuer." I might be able to preload the intermediate CAs onto the instance as a workaround.
Could not read status line: Connection was closed by server
Connection failed
. 2026-05-29 03:16:16.780 Verifying certificate for "s3.amazonaws.com" with fingerprint 7e:bf:42:63:5d:c3:2b:cb:97:f6:0e:38:3e:e1:f8:63:39:aa:ce:a2:39:e1:56:b9:8d:74:1c:79:12:67:14:36 and 08 failures
. 2026-05-29 03:17:01.824 Certificate for "s3.amazonaws.com" matches cached fingerprint and failures
-certificate option is not applicable to S3.