Runtime ssl check

Fixes #120.