add ssl certificates errors check for rvm fetch, fix #1702