Bounty: 100

I am newbie on SSL concept, I am trying to connect to API which have x509 mutual auth using HTTParty. I got client cert, client key and server cert. All are pem files. I got it working with client cert and key and with verify: false. Now next step is how to verify server cert also?