Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Stack fails with TlsExceptionHostPort ("certificate has unknown CA") on Windows #260

Closed
Rufflewind opened this issue Nov 21, 2016 · 4 comments

Comments

@Rufflewind
Copy link
Member

Installed Haskell Platform Minimal for GHC 8.0.1 i386 on Microsoft Windows 10 Enterprise v1607 Build 14393.0 from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms

Tried using stack setup but got this error:

TlsExceptionHostPort (HandshakeFailed (Error_Protocol ("certificate has unknown CA",True,UnknownCa))) "www.stackage.org" 443

The stack --version is

Version 1.1.2, Git revision c6dac65e3174dea79df54ce6d56f3e98bc060ecc (dirty) (3647 commits) i386 hpack-0.14.0

This seems related to commercialhaskell/stack#234 but the bug was closed and I do not experience this problem with the stack I download directly from https://haskellstack.org (which is also newer, 1.2.0).

Version 1.2.0, Git revision 123819b7d65df2ad7fe63fb5eb39a98536acb5f3 (4055 commits) x86_64 hpack-0.14.0
@gbaz
Copy link
Contributor

gbaz commented Nov 21, 2016

Thanks for the report!

Have you tried the fix suggested in http://stackoverflow.com/questions/32654493/stack-haskell-throws-tlsexception-in-windows/32654494#32654494
?

Regardless, a new HP will be released soon with a newer stack, which in turn should also resolve this.

@Rufflewind
Copy link
Member Author

Rufflewind commented Nov 21, 2016

Navigating to https://stackage.org (as mentioned in the error message) works around the bug.

@Rufflewind
Copy link
Member Author

Spoke too soon. Shortly after running setup, I ran into: commercialhaskell/stack#2521

(Git was not present on this system.) I'm not sure if these are real errors or just harmless warnings.

@gbaz
Copy link
Contributor

gbaz commented Jan 21, 2017

should be fixed with the 8.0.2 release

@gbaz gbaz closed this as completed Jan 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants