feat(clients/go): mxgw-go -require-certificate-validation flag (mxaccessgw#199)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user