Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate Error during GHCup Installation on Windows 10 #1084

Closed
rotaroced opened this issue Jun 23, 2024 · 3 comments
Closed

Certificate Error during GHCup Installation on Windows 10 #1084

rotaroced opened this issue Jun 23, 2024 · 3 comments

Comments

@rotaroced
Copy link

I encountered a problem while trying to install GHCup on my Windows 10 PC following the instructions from the GHCup website.

I used the following PowerShell command to download the tool:

Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;try { Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $true,$false,$false,$false,$false,$false,$false,"","","","",$true } catch { Write-Error $_ }

During installation, a MinGW window opens and attempts to connect to 'www.haskell.org', but it fails with the following error:

--2024-06-23 14:24:05--  https://www.haskell.org/ghcup/sh/bootstrap-haskell
Loaded CA certificate '/usr/ssl/certs/ca-bundle.crt'
Resolving www.haskell.org (www.haskell.org)... 2604:1380:4641:a100::1, 147.75.54.133
Connecting to www.haskell.org (www.haskell.org)|2604:1380:4641:a100::1|:443... connected.
ERROR: The certificate of ‘www.haskell.org’ is not trusted.
ERROR: The certificate of ‘www.haskell.org’ doesn't have a known issuer.
Press any key to exit

Environment:

  • OS: Windows 10
  • PowerShell version: 5.1.19041.4522
  • Existing tools: Chocolatey, MSys2 (in C:\tools\msys64)

I have tried disabling the firewall but this did not change the outcome.

@hasufell
Copy link
Member

Did you try pointing it to the existing msys2 from chocolatey? It asks whether there's a preexisting one during installation

@rotaroced
Copy link
Author

Yes, I tried using C:\tools\msys64 and installing a new msys2, but the results were identical in both cases

@rotaroced
Copy link
Author

Proceeding to the manual installation solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants