https://github.com/ruby-china/rubygems-mirror/wiki
http://curl.haxx.se/ca/cacert.pem
Make sure you have installed ruby.
And put this cacert.pem
at a permanent path.
e.g. D:\Local\Ruby\lib\cacert.pem
@echo off
setx SSL_CERT_FILE D:\Local\Ruby\lib\cacert.pem
call gem update --system
call gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
call gem install bundler
call bundle config mirror.https://rubygems.org https://gems.ruby-china.org