How I can use the keystore in a ruby request?

I have a problem, in my Keystore I have a cert required for connect with a endpoint when I call this endpoint with curl I have a success connection but when I try to call this endpoint in my ruby code I get this error SSL_connect returned=1 errno=0 state=error: certificate verify failed