Commit 3bbce48
fix(tls): cap at TLS 1.2 to avoid TLS 1.3 extensions that S7 PLCs reject
OpenSSL offers TLS 1.3 by default, adding extensions (supported_versions,
key_share, psk_key_exchange_modes) to the ClientHello that S7-1500 PLCs
don't understand and RST the connection. Setting maximum_version to TLS 1.2
produces a clean TLS 1.2 ClientHello without these extensions.
The set_ciphersuites() call (TLS 1.3 only) is now unnecessary and removed.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 51c1546 commit 3bbce48
2 files changed
Lines changed: 16 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
253 | 256 | | |
| 257 | + | |
254 | 258 | | |
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| |||
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
294 | | - | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
| 944 | + | |
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
961 | | - | |
| 961 | + | |
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
993 | | - | |
| 993 | + | |
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
1026 | | - | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
1027 | 1030 | | |
| 1031 | + | |
1028 | 1032 | | |
1029 | 1033 | | |
1030 | 1034 | | |
1031 | 1035 | | |
1032 | 1036 | | |
1033 | 1037 | | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | 1038 | | |
1038 | 1039 | | |
1039 | 1040 | | |
| |||
0 commit comments