parameters: (self)
docstring: Verify a certificate in a context.
  
          .. versionadded:: 0.15
  
          :raises X509StoreContextError: If an error occurred when validating a
            certificate in the context. Sets ``certificate`` attribute to
            indicate which certificate caused the error.
docstring_summary: Verify a certificate in a context.
docstring_tokens: Verify a certificate in a context .
function: def verify_certificate(self):
          """
          Verify a certificate in a context.
  
          .. versionadded:: 0.15
  
          :raises X509StoreContextError: If an error occurred when validating a
            certificate in the context. Sets ``certificate`` attribute to
            indicate which certificate caused the error.
          """
          # Always re-initialize the store context in case
          # :meth:`verify_certificate` is called multiple times.
          #
          # :meth:`_init` is called in :meth:`__init__` so _cleanup is called
          # before _init to ensure memory is not leaked.
          self._cleanup()
          self._init()
          ret = _lib.X509_verify_cert(self._store_ctx)
          self._cleanup()
          if ret <= 0:
              raise self._exception_from_context()
function_tokens: def verify_certificate ( self ) : # Always re-initialize the store context in case # :meth:`verify_certificate` is called multiple times. # # :meth:`_init` is called in :meth:`__init__` so _cleanup is called # before _init to ensure memory is not leaked. self . _cleanup ( ) self . _init ( ) ret = _lib . X509_verify_cert ( self . _store_ctx ) self . _cleanup ( ) if ret <= 0 : raise self . _exception_from_context ( )