client: pin the server certificate by SHA-256, not by file
-server-cert-sha256 <hex> replaces -server-cert <file>: the connection is accepted only if the SHA-256 of the server's certificate (DER) matches, colons optional, case-insensitive. No certificate or key file to handle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
bb92a9b954
commit
94716ac989
4 changed files with 26 additions and 28 deletions
|
|
@ -57,7 +57,7 @@ pkg/tap/
|
|||
## CLI flags
|
||||
|
||||
Required: `-host`, `-user`
|
||||
Optional: `-pass`, `-port` (443), `-hub` (DEFAULT), `-tap` (auto), `-mac`, `-plain-password`, `-insecure`, `-server-cert` (pin a certificate file: exact match, no CA/hostname check), `-no-dhcp`, `-accept-default-gateway`, `-accept-static-routes`, `-accept-dns`, `-policy-route-table` (0=disabled), `-connmark`, `-reconnect-delay-secs` (5), `-keepalive-timeout-secs` (0=disabled)
|
||||
Optional: `-pass`, `-port` (443), `-hub` (DEFAULT), `-tap` (auto), `-mac`, `-plain-password`, `-insecure`, `-server-cert-sha256` (pin the server certificate by its SHA-256: no CA/hostname check), `-no-dhcp`, `-accept-default-gateway`, `-accept-static-routes`, `-accept-dns`, `-policy-route-table` (0=disabled), `-connmark`, `-reconnect-delay-secs` (5), `-keepalive-timeout-secs` (0=disabled)
|
||||
|
||||
## SoftEther protocol pitfalls
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue