You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/mssql.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,23 @@ Please run the following command to add the MS SQL Server module to your Go depe
14
14
go get github.com/testcontainers/testcontainers-go/modules/mssql
15
15
```
16
16
17
+
!!!info
18
+
To use this module with Go 1.23+, set `GODEBUG=x509negativeserial=1`. See the related issue in the [mssql-docker repository](https://github.com/microsoft/mssql-docker/issues/895) for details.
19
+
20
+
```shell
21
+
# append to any existing GODEBUG flags instead of overwriting
- Go 1.23+ has stricter certificate validation that rejects certificates with negative serial numbers by default
26
+
- The `x509negativeserial=1` flag temporarily re‑enables acceptance of such certificates
27
+
Note: This stricter check in Go 1.23+ is a security hardening. Prefer using images with fixed certificates (see below). Use the GODEBUG workaround only with affected images and in test environments.
28
+
29
+
!!!info
30
+
This is fixed in SQL2019 CU32 and SQL2022 CU18 (see [SQL Server 2022 CU18 — KB 3867855](https://learn.microsoft.com/en-us/troubleshoot/sql/releases/sqlserver-2022/cumulativeupdate18#3867855)).
31
+
32
+
Prefer using container images based on these (or newer) CUs to avoid setting `GODEBUG`.
0 commit comments