Pass the cert location to getSubjectFromCert (it defaults to the proxy, not ~/.globus/usercert.pem)