Replaced an assertion in the OpenSSL backend with a proper exception