Mysql gem - connect with certificate

Hello

I am trying to use the ruby gem mysql in order to connect to an SQL
database.

I manage to connect thru my windows MySQL Workbench using my credentials
with a .pem certificate file.

My ruby command is:
Mysql.new(@hostname,@username,@password,@dbname,@port)

But the database requires a .pem certificate too. How do I insert the
certificate file thru the ruby connection?

Thanks

Sagy