Coder Social home page Coder Social logo

Comments (4)

Ansuel avatar Ansuel commented on August 18, 2024

umm yes i need to add -K to the script as normally the modem doesn't have certificate

about version... well it's another bug... problem is that you are not connected to dslam i think

(or can you give me xdslctl info --vendor output ? )

from tch-nginx-gui.

meyergru avatar meyergru commented on August 18, 2024

Yes, I think so. Here is the output.

# xdslctl info --vendor
xdslctl: ADSL driver and PHY status
Status: Idle
Last Retrain Reason:    0
Last initialization procedure status:   0

ChipSet Vendor Id:
ChipSet VersionNumber:
ChipSet SerialNumber:

The '-k' switch would be needed for version checks as well, in fact everywhere when curl is used for ilpuntotecnico repo (e.g. the cron script). The better option woul be to add Letsencrypt CA to the cert chain. I can look into that...

from tch-nginx-gui.

Ansuel avatar Ansuel commented on August 18, 2024

and it's already like that ;)

anyway i fixed the error with no dsl

from tch-nginx-gui.

meyergru avatar meyergru commented on August 18, 2024

The "-k" option is potentially unsafe against MITM-attacks.

About the "better" option: curl can use a --cacert (bundle or single cert) or a --capath parameter.

The Letsencrypt CA certs are not contained in the default path /etc/ssl/certs - nor are most other CAs.
One could provide a standard set of CAs in a bundle.

Alas, the usual cert bundle file is named ca-certificates.crt, but it is not compiled into the curl version in openwrt, so what would be needed is:

  1. Providing an /etc/ssl/certs/ca-certificates.crt with the usual root CAs.
  2. Setting a system-wide environment variable CURL_CA_BUNDLE pointing to that bundle.

or:

  1. Calling curl with --ca-bundle "/etc/ssl/certs/ca-certificates.crt" every time.

from tch-nginx-gui.

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.