This file contains hidden or 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
# Please fork if you can improve this. (e.g. Windows support) | |
# | |
# Ruby 1.9 doesn't contain any SSL root certificates, neither does it read the ones | |
# installed with your operating system. This results in an error like | |
# | |
# SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed | |
# | |
# This solution is based on http://martinottenwaelter.fr/2010/12/ruby19-and-the-ssl-error/ | |
# but can be used to monkey patch 3rd party tools, e.g. Github's 'gist' command. | |
# |