feat(clients/go): mxgw-go -require-certificate-validation flag (mxaccessgw#199)

This commit is contained in:
Joseph Doherty
2026-11-09 12:03:00 -05:00
parent f13a747084
commit 0ec247e88c
3 changed files with 50 additions and 20 deletions
+4 -1
View File
@@ -501,7 +501,10 @@ buffer is widened to 16 MiB so a single long command line (e.g. a bulk write wit
thousands of handles) does not trip bufio's default 64 KiB token-too-long limit;
a line that still exceeds 16 MiB surfaces as a framed error and ends the session.
Use TLS options for a secured gateway:
Use TLS options for a secured gateway. Over TLS (no `-plaintext`) with
no `-ca-cert`, `mxgw-go` skips certificate verification by default (self-signed
gateway certs); pass `-require-certificate-validation` to verify against the
system trust roots instead:
```powershell
go run ./cmd/mxgw-go smoke -endpoint mxgateway.example.local:5001 -ca-cert C:\certs\mxgateway-ca.pem -server-name-override mxgateway.example.local -api-key-env MXGATEWAY_API_KEY -item Area001.Tag.Value -json