SSL certificate check for other platforms

Fixes #244

While it works in all the places I've tried it, it would be nice to get some confirmation from others that this works, especially considering the compatibility issues OpenSSL has across platforms.