Code Monkey home page Code Monkey logo

Comments (12)

jandd avatar jandd commented on May 25, 2024

http://stackoverflow.com/questions/5896380/https-connection-using-pem-certificate has an example how to do this with urllib2/httplib from the Python standard library

from nagstamon.

HenriWahl avatar HenriWahl commented on May 25, 2024

Due to some vacation I will check this issue in some days.

from nagstamon.

Guigui37 avatar Guigui37 commented on May 25, 2024

I need this feature too, anything new about it ? Thanks!

from nagstamon.

HenriWahl avatar HenriWahl commented on May 25, 2024

The now used Requests modules supports server certificate verification and use of client certificates, but the private key of a client certificate has to be unencrypted: http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification
I am not sure if this will get it into the upcoming 2.0 release, but later this is an option.

from nagstamon.

falck0 avatar falck0 commented on May 25, 2024

hello, is there an update on this topic? We'd like to add our icingaweb2 server, which is only reachable with a specific client certificate.
Thanks!

from nagstamon.

HenriWahl avatar HenriWahl commented on May 25, 2024

According to the mentioned https://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification client certificates still have to be unencrypted.
Aside this there is still no support for it in Nagstamon.

from nagstamon.

frankenstein91 avatar frankenstein91 commented on May 25, 2024

This function would also be a big advantage for me. Our monitoring server is only accessible via SSH and HTTPs with client certificate. I would not like to maintain each user again in the operating system. Unfortunately I cannot find the place in the source code where I would have to add the certificates. Of course, a path in the config would be nicer, but I would also be able to store a fixed path for my colleagues in the manual (a client pem in the certifi folder?).

from nagstamon.

HenriWahl avatar HenriWahl commented on May 25, 2024

I assume you look for https://github.com/HenriWahl/Nagstamon/blob/master/Nagstamon/Servers/Generic.py#L218 and the following - at least there the HTTP-connection is set up.

from nagstamon.

frankenstein91 avatar frankenstein91 commented on May 25, 2024

No, I didn't suspect it there. I had searched in the product specific Python files.

from nagstamon.

HenriWahl avatar HenriWahl commented on May 25, 2024

The request modules does not support client certificates.

from nagstamon.

jandd avatar jandd commented on May 25, 2024

What about https://docs.python-requests.org/en/master/user/advanced/#client-side-certificates ?

from nagstamon.

HenriWahl avatar HenriWahl commented on May 25, 2024

The big message there:

Warning

The private key to your local certificate must be unencrypted. Currently, Requests does not support using encrypted keys.

This doesn't sound that great.

from nagstamon.

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.