# \[Перевод\] Очиститель воздуха скачивал корневой сертификат по HTTP: как я выгнал из него облако Coway

DevFeed: [\[Перевод\] Очиститель воздуха скачивал корневой сертификат по HTTP: как я выгнал из него облако Coway](<https://devfeed.tech/articles/http-coway-133672.md>)

Original publisher: [Read original article](<https://habr.com/ru/articles/1107784/>)

Author: opium

Published: 2026-11-14T08:13:28Z

Content type: tutorial

Language: ru

Sources: [Tagir Valeev](<https://devfeed.tech/sources/tagir-valeev.md>)

Topics: [Home Assistant](<https://devfeed.tech/topics/home-assistant.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Bluetooth](<https://devfeed.tech/topics/bluetooth.md>), [MQTT](<https://devfeed.tech/topics/mqtt.md>), [Raspberry Pi](<https://devfeed.tech/topics/raspberry-pi.md>), [payload](<https://devfeed.tech/topics/payload.md>), [ChatGPT](<https://devfeed.tech/topics/chatgpt.md>), [Ethernet](<https://devfeed.tech/topics/ethernet.md>), [iphone](<https://devfeed.tech/topics/iphone.md>)

Tags: [aes](<https://devfeed.tech/tags/aes.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [apple](<https://devfeed.tech/tags/apple.md>), [apple-home](<https://devfeed.tech/tags/apple-home.md>), [bluetooth](<https://devfeed.tech/tags/bluetooth.md>), [bluetooth-le](<https://devfeed.tech/tags/bluetooth-le.md>), [coway](<https://devfeed.tech/tags/coway.md>), [home-assistant](<https://devfeed.tech/tags/home-assistant.md>), [http](<https://devfeed.tech/tags/http.md>), [https](<https://devfeed.tech/tags/https.md>), [iot](<https://devfeed.tech/tags/iot.md>), [mitm](<https://devfeed.tech/tags/mitm.md>), [mitmproxy](<https://devfeed.tech/tags/mitmproxy.md>), [mqtt](<https://devfeed.tech/tags/mqtt.md>), [pi](<https://devfeed.tech/tags/pi.md>), [raspberry](<https://devfeed.tech/tags/raspberry.md>), [raspberry-pi](<https://devfeed.tech/tags/raspberry-pi.md>), [tag-4d6d71beb3c0](<https://devfeed.tech/tags/tag-4d6d71beb3c0.md>), [tag-714da2192781](<https://devfeed.tech/tags/tag-714da2192781.md>), [tag-85443682aea4](<https://devfeed.tech/tags/tag-85443682aea4.md>), [tag-92292b2c626f](<https://devfeed.tech/tags/tag-92292b2c626f.md>), [tls](<https://devfeed.tech/tags/tls.md>)

## AI overview

The author replaced the Coway cloud dependency for an Airmega IconS with direct Home Assistant control. A man-in-the-middle setup revealed that the purifier fetched its Amazon root certificate over plain HTTP; substituting a lab certificate exposed its HTTPS traffic and MQTT configuration. The device's MQTT host and credentials came from a server response, which the author could redirect. Later, reverse engineering the Bluetooth setup showed that the Wi-Fi configuration payload includes the certificate and configuration server URLs. Supplying custom URLs during setup made the MitM setup unnecessary: a custom server and MQTT service could connect the purifier directly to Home Assistant, which then exposes it to Apple Home. Setup still relied on the Coway app initially; the author then implemented setup through Web Bluetooth. The excerpt describes the author's device and implementation, not a general procedure validated for other Coway models.

## Source excerpt

Облако Coway, по наблюдениям автора оригинала, ломалось как минимум раз-два в год: то банило интеграцию для Home Assistant, то меняло приложение, а однажды на несколько недель заблокировало его аккаунт. Он решил отвязать свой очиститель Airmega IconS от облака. Поднял MitM-стенд на Raspberry Pi и обнаружил, что устройство скачивает корневой сертификат Amazon по обычному HTTP: стоит подменить его, и HTTPS-запросы устройства видны, никакой взломанный удостоверяющий центр не нужен. Дальше своя пара ключей в ответе сервера, чтобы проксировать MQTT на порту 8883, разбор протокола настройки по Bluetooth (AES-ключ из случайных букв и MAC-адреса) и главная находка: адреса сервера сертификатов передаются прямо в настроечном пакете. В итоге очиститель общается с Home Assistant напрямую, а кнопка "Спокойной ночи" в Apple Home наконец включает белый шум. Читать далее