Skip to content

Commit 51d37c1

Browse files
authored
Documentation for Sunrise Internet Box (#407)
1 parent 35bc37d commit 51d37c1

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The Sagemcom F@st series is used by multiple cable companies, where some cable c
2121
| Sagemcom F@st 3865b | Proximus (b-box3) | md5 | |
2222
| Sagemcom F@st 3890V3 | Delta / Zeelandnet | sha512 | |
2323
| Sagemcom F@st 3890V3 | DNA (DNA Mesh Wifi F-3890) | sha512 | username: admin |
24-
| Sagemcom F@st 3896 | Ziggo<sup>*</sup> | sha512 | username: admin |
24+
| Sagemcom F@st 3896 | Ziggo<sup>1</sup> | sha512 | username: admin |
2525
| Sagemcom F@st 4360Air | KPN | md5 | |
2626
| Sagemcom F@st 4353 | Belong Gateway | md5 | username: admin, password: "" |
2727
| Sagemcom F@st 5250 | Bell (Home Hub 2000) | md5 | username: guest, password: "" |
@@ -39,9 +39,12 @@ The Sagemcom F@st series is used by multiple cable companies, where some cable c
3939
| Sagemcom F@st 5690 | Bell (Giga Hub) | sha512 | username: admin, password: "" |
4040
| Sagemcom F@st 5655V2 | MásMóvil | md5 | |
4141
| Sagemcom F@st 5657IL | | md5 | |
42+
| Sagemcom F@st 5360 | Sunrise Internet Box<sup>2</sup> | md5 | username: admin |
4243
| Speedport Pro | Telekom | md5 | username: admin |
4344

44-
<sup>*</sup> The firmware provided on the Sagemcom F@st 3896 router from Ziggo does not support the endpoint used in this library. [sagemcom-f3896lg-zg-api](https://github.com/mgyucht/sagemcom-f3896lg-zg-api) provides an API client suitable for Ziggo's firmware.
45+
<sup>1</sup> The firmware provided on the Sagemcom F@st 3896 router from Ziggo does not support the endpoint used in this library. [sagemcom-f3896lg-zg-api](https://github.com/mgyucht/sagemcom-f3896lg-zg-api) provides an API client suitable for Ziggo's firmware.
46+
47+
<sup>2</sup> If you run into `SSLV3_ALERT_HANDSHAKE_FAILURE` errors, see [here](docs/ssl-error.md) for a workaround.
4548

4649
> Contributions welcome. If you router model is supported by this package, but not in the list above, please create [an issue](https://github.com/iMicknl/python-sagemcom-api/issues/new) or pull request.
4750

docs/ssl-error.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Troubleshooting `SSLV3_ALERT_HANDSHAKE_FAILURE`
2+
3+
A `SSLV3_ALERT_HANDSHAKE_FAILURE` error when connecting to the router indicates that there is a mismatch with the cipher being used in the SSL connection (see [here](https://stackoverflow.com/a/73254780/487356)).
4+
5+
Running `openssl s_client -connect <router-ip>:<ssl-port>` on the router shows what cipher can be used. In the case of a "Sunrise Internet Box" it was `AES256-GCM-SHA384`.
6+
7+
The following code snippet shows how to set up a `SagemcomClient` configured to use that specific cipher (and not validating the router's certificate):
8+
9+
```
10+
async def main() -> None:
11+
sslcontext = ssl._create_unverified_context()
12+
sslcontext.set_ciphers("AES256-GCM-SHA384")
13+
14+
session = ClientSession(
15+
headers={"User-Agent": f"{DEFAULT_USER_AGENT}"},
16+
timeout=ClientTimeout(DEFAULT_TIMEOUT),
17+
connector=TCPConnector(
18+
ssl_context=sslcontext
19+
)
20+
)
21+
async with SagemcomClient(HOST, USERNAME, PASSWORD, ENCRYPTION_METHOD, session=session) as client:
22+
```

0 commit comments

Comments
 (0)