Fixed ssl protocol error

have generic ssl check, independent of github policy.