Skip to content

Instantly share code, notes, and snippets.

@comuttun
Created March 9, 2013 18:25
Show Gist options
  • Select an option

  • Save comuttun/5125147 to your computer and use it in GitHub Desktop.

Select an option

Save comuttun/5125147 to your computer and use it in GitHub Desktop.
Updating root CA certs

Updating root CA certs

From Stackoverflow

Linux, Cygwin, etc

$ cd /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