Giter Site home page Giter Site logo

Comments (4)

worldopener avatar worldopener commented on September 24, 2024

This fixes the error:

diff --git a/pymisp/api.py b/pymisp/api.py
index d68472a..d29b658 100644
--- a/pymisp/api.py
+++ b/pymisp/api.py
@@ -1096,7 +1096,7 @@ class PyMISP(object):
         """Returns the recommended API version from the server"""
         session = self.__prepare_session()
         url = urljoin(self.root_url, 'servers/getPyMISPVersion.json')
-        response = session.get(url)
+        response = session.get(url, verify=False)
         return self._check_response(response)

     def get_version(self):

I think the cleanest way to solve this, is to create a local CA

from misp-taxii-server.

FloatingGhost avatar FloatingGhost commented on September 24, 2024

You shouldn't have to edit pymisp itself. It's already able to handle self-signed certficates.

See the README

As a last resort, you can disable SSL verification (config -> misp -> verifySSL), but this is not recommended.

from misp-taxii-server.

worldopener avatar worldopener commented on September 24, 2024

I now use an internal CA and this CA is trusted as wget for example throws no errror

The README seems to be outdated because when i set

misp:
    url: "https://test.local"
    api: xxxx
    verifySSL = False

i get

  File "/var/www/Taxii-Server/venv/lib/python3.5/site-packages/yaml/scanner.py", line 289, in stale_possible_simple_keys
    "could not find expected ':'", self.get_mark())
yaml.scanner.ScannerError: while scanning a simple key
  in "/var/www/Taxii-Server/config/config.yaml", line 32, column 5
could not find expected ':'
  in "/var/www/Taxii-Server/config/config.yaml", line 34, column 1

Setting it with:

misp:
    url: "https://test.local"
    api: xxxx
    verifySSL: False

works

exporting the CAs crt (i use an internal CA now) doesnt work

export REQUESTS_CA_BUNDLE=/usr/local/share/ca-certificates/CA.crt

Why doesn't it use the local certs wget uses?

from misp-taxii-server.

FloatingGhost avatar FloatingGhost commented on September 24, 2024
verifySSL = False

well yeah of course this would fail? This is invalid YAML

Why doesn't it use the local certs wget uses?

A question for the maintainers of requests rather than me, I'm afraid

from misp-taxii-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.