Commit 46e49c6
committed
Windows install one-liner: force TLS 1.2 so users reach the OS gate (marcpope#274)
Server 2012 / 2012 R2 and Win 7/8/8.1 ship with PowerShell defaults
that use TLS 1.0/1.1. A modern BBS server rejects those at the SSL
handshake, so 'iwr' fails before our install-windows.ps1 script (and
its marcpope#274 OS gate) ever runs. The user sees 'The request was aborted:
Could not create SSL/TLS secure channel' instead of the friendly
'unsupported Windows version' message that explains what to do.
Adding the SecurityProtocol line to the one-liner before iwr forces
TLS 1.2 in the calling PowerShell session. .NET 4.5+ (which ships
with Server 2012 and later) supports the Tls12 enum value, so this
runs cleanly on every OS we'd want to gate. Modern Windows is
unaffected — they already default to TLS 1.2.1 parent 7121866 commit 46e49c6
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3123 | 3123 | | |
3124 | 3124 | | |
3125 | 3125 | | |
3126 | | - | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
| 3133 | + | |
3127 | 3134 | | |
3128 | 3135 | | |
3129 | 3136 | | |
| |||
0 commit comments