Here is a script that I wrote to get a client certificate for Polytechnique Montréal's eduroam wifi.