Giter Club home page Giter Club logo

windows-dev's Introduction

windows-dev

A simple utility that automates downloading Cygwin, exporting the system CA certificates, and formatting them as a PEM file.

This is done just to create a PEM-encoded certificate chain that UNIX-y programs like Git Bash can use when cloning from Horizon over HTTPS. Without it, Git Bash would fail with SSL validation errors because it doesn't not know how to interact with the Windows certificate API to read the CA certificates that way.

One can disable SSL validation, but that defeats the whole purpose of SSL in the first place.

Usage

Open up a PowerShell window and run the following commands:

Unblock-File .\bootstrap.ps1
.\bootstrap.ps1

This will download Cygwin, export the certificates, and format them to the default CA certificate chain located at C:/root/cygwin64/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem.

If you are using Cygwin alongside GitBash, the GitBash git can be configured to use this file by running the following command:

git config --global http.sslCAInfo <path_to_ca_cert_chain>

Troubleshooting

If you get an error about execution policy despite having unblocked the file with the command from above, make sure the execution policy is set to something more permissive.

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

windows-dev's People

Contributors

wheelerlaw avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.