Skip to content

Instantly share code, notes, and snippets.

@xee5ch
Created June 30, 2013 14:05
Show Gist options
  • Save xee5ch/5895249 to your computer and use it in GitHub Desktop.
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.
#!/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