You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
64 lines
1.8 KiB
Plaintext
Vendored
64 lines
1.8 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 6
|
|
description: Get TLS Settings and other functions to work with MySQL in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, MySQL]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get TLS Settings
|
|
Forms settings for using TLS
|
|
|
|
|
|
|
|
`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
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Tls settings can only be set when a connection is created: explicitly, by using the `OpenConnection` 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
|
|
:::
|
|
<br/>
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Result = OPI_MySQL.GetTLSSettings(True);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint mysql GetTLSSettings \
|
|
--trust true
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint mysql GetTLSSettings ^
|
|
--trust true
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"use_tls": true,
|
|
"accept_invalid_certs": true
|
|
}
|
|
```
|