Get TLS Settings
Forms settings for using TLS
- Parameters
- Advanced call ?
Function GetTlsSettings(Val DisableCertVerification, Val CertFilepath = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| DisableCertVerification | --trust | Boolean | ✔ | Allows to work with invalid certificates, including self signed |
| CertFilepath | --cert | String | ✖ | Path to the root PEM file of the certificate if it is not in the system repository |
Returns
Structure Of KeyAndValue - Structure of TLS connection settings
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Tls settings can only be set when a connection is created: explicitly, by using the CreateConnection function or implicit, when passing the connection string to ORM methods.
Passing Tls settings together with passing an already created connection to the Connection parameter will be ignored
1C:Enterprise/OneScript code example
Result = OPI_MySQL.GetTLSSettings(True);
- Bash
- CMD/Bat
oint mysql GetTLSSettings \
--trust true
oint mysql GetTLSSettings ^
--trust true
Result
{
"use_tls": true,
"accept_invalid_certs": true
}