OTA provider file SSL Verification

Aperta
#757 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

Start by tracing how ZHA configures zigpy OTA providers and downloads firmware images, then inspect the SSL verification error in the reported download path. Check whether certificate validation is configurable and whether the certificate chain is instead broken on the backend; done means the cause is established and firmware downloads work with certificate validation handled safely.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

question

Hi!

The idea is to apply update configuration for Shelly devices in ZHA. I added the following configuration:

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

zha_toolkit:

zha:
  database_path: /config/zigbee.db
  enable_quirks: true
  custom_quirks_path: zha_quirks/

  zigpy_config:
    ota:
      extra_providers:
        - type: zigpy_remote
          url: http://updates.shelly.cloud:3050/list-zigbee-firmwares
        - type: zigpy_local
          index_file: zha_ota/index.json
        - type: advanced
          path: zigbee_ota/

Note: http://updates.shelly.cloud:3050/list-zigbee-firmwares is only for testing purposes. It is not the final production update URL.

When I try to notify the Zigbee device, the logs show the following error:

Failed to download image, ignoring
ssl.SSLCertVerificationError: unable to get local issuer certificate

Is it possible to disable SSL certificate validation, or should this be fixed on our backend side?

Lingua principale
Python
Stelle
96
Fork
84
Merge medio
3g 1h
PR unite (30g)
13

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di zigpy/zha

Tutte le issue di zigpy/zha

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.