Commit fa7de7b
committed
fix: use ssl.create_default_context for the TLS server
SonarCloud python:S4423 wants the stdlib helper instead of a bare
SSLContext(PROTOCOL_TLS_SERVER); create_default_context selects the
hardened cipher suite list, disables compression, and locks in
TLS 1.2 minimum (we keep the explicit minimum_version pin as a
belt-and-braces check).1 parent 417dbd0 commit fa7de7b
1 file changed
Lines changed: 5 additions & 3 deletions
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
0 commit comments