Created
June 30, 2013 14:05
-
-
Save xee5ch/5895249 to your computer and use it in GitHub Desktop.
Use CURL Certificate Authorities files to fix SSL certs in my Cygwin environment.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pushd /usr/ssl/certs | |
curl http://curl.haxx.se/ca/cacert.pem | awk 'split_after==1{n++;split_after=0} /-----END CERTIFICATE-----/ {split_after=1}{print > "cert" n ".pem"}' | |
c_rehash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment