igrigorik/em-http-request — pull request #179 by thoughtless (2012-03-15 22:19:19+00:00)
Title: allow SSL certs to be verified

Currently if the option :verify_peer is set to true, all requests will fail. This is because ssl_verify_peer is not implemented. According to the EM docs, "It is up to user defined code to perform a check on the certificates."

Since the method isn't defined by em-http-request, it returns nil, and all https requests fail.

I have attach a first stab at implementing this method. It is lacking tests, and this is almost certainly not a completely correct way of verifying the SSL certs; however, it is far better than not verifying SSL certs at all.

Are you interested in including this feature in em-http-request? Can anyone make some suggestion for improving the cert checking?