Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

wheelerlaw/windows-dev

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 -Scope CurrentUser -ExecutionPolicy RemoteSigned

About

A collection of scripts to set up an optimal development environment on a sub-optimal development OS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.