'Verify a certificate in a context.
:param store_ctx: The :py:class:`X509StoreContext` to verify.
:raises: Error'

def verify_certificate(self):

    self._init()
    ret = _lib.X509_verify_cert(self._store_ctx)
    self._cleanup()
    if (ret <= 0):
        raise self._exception_from_context()
