This script will generated Keystone token from VOMS proxy certificate. Little python script is created for solving problem with curl on Redhat-based distribution.
Download both scripts and execute keystone-voms.sh on the machine with your Grid certificate (voms-proxy-* command should be available there).