Tech Tip: Minimum TLS for External APIs
PRODUCT: 4D | VERSION: 21 | PLATFORM: Mac & Win
Published On: April 13, 2026
Since 4D 20, the default minimum TLS 4D allows is TLS 1.3. When using an external API that sends a response back to 4D, make sure that the minimum TLS is compatible. If needed, the minimum TLS can be set using the SET DATABASE PARAMETER command with the Min TLS version selector.
It can also be set for the 4D Web Server through the 4D WebServer class as a setting parameter using the .minTLSVersion attribute.
This may be something to note, when upgrading versions of 4D databases that utilizes APIs that have been functioning with lower TLS versions.
| // Set Minimum TLS to 1.3 SET DATABASE PARAMETER(Min TLS version; TLSv1_2) |
It can also be set for the 4D Web Server through the 4D WebServer class as a setting parameter using the .minTLSVersion attribute.
| var $settings; $result : Object var $webServer : 4D.WebServer $settings:=New object("minTLSVersion";TLSv1_2) $webServer:=WEB Server $result:=$webServer.start($settings) |
This may be something to note, when upgrading versions of 4D databases that utilizes APIs that have been functioning with lower TLS versions.