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

GitLab CI on Windows: "certificate has unknown CA" #1414

Closed
martijnbastiaan opened this issue Jun 30, 2020 · 0 comments
Closed

GitLab CI on Windows: "certificate has unknown CA" #1414

martijnbastiaan opened this issue Jun 30, 2020 · 0 comments

Comments

@martijnbastiaan
Copy link
Member

Not really an issue anymore, but documenting for other people struggling with the same issue.

Issue

stack build fails on Windows using GitLab CI. I'm seeing:

 HttpExceptionRequest Request {
   host                 = "casa.fpcomplete.com"
   port                 = 443
   secure               = True
   requestHeaders       = []
   path                 = "/v1/pull"
   queryString          = ""
   method               = "POST"
   proxy                = Nothing
   rawBody              = False
   redirectCount        = 10
   responseTimeout      = ResponseTimeoutDefault
   requestVersion       = HTTP/1.1
 }
  (InternalException (HandshakeFailed (Error_Protocol ("certificate has unknown CA",True,UnknownCa))))

The issue is that case.fpcomplete.com uses DST Root CA X3 as a root CA, which Windows - at least the version installed on the CI - does not recognize.

Workaround / solution

  1. Open https://casa.fpcomplete.com/ in Firefox
  2. Click the 🔒 next to the address, click >, click More information, click View Certificate
  3. Open the DST Root CA X3 certificate and download it as a PEM (cert)
  4. Add it to your repository
  5. On the Windows CI run: certutil –addstore -enterprise –f "Root" path/to/certificate.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant