1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-01 22:29:52 +02:00
Files
OpenIntegrations/docs/en/md/FTP/Common-methods/Get-tls-settings.mdx

63 lines
1.6 KiB
Plaintext
Raw Normal View History

2025-07-17 22:02:56 +03:00
---
2025-09-10 14:54:07 +03:00
sidebar_position: 14
2025-07-17 22:02:56 +03:00
description: Get TLS Settings and other functions to work with FTP 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, FTP]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get TLS Settings
Forms settings for using TLS
2025-08-04 11:13:57 +03:00
`Function GetTlsSettings(Val DisableCertVerification, Val CertFilepath = "") Export`
2025-07-17 22:02:56 +03:00
| 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 settings
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
2025-09-01 14:51:24 +03:00
Result = OPI_FTP.GetTLSSettings(True);
2025-07-17 22:02:56 +03:00
```
2025-09-16 09:07:33 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint ftp GetTLSSettings \
--trust true
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint ftp GetTLSSettings ^
--trust true
```
</TabItem>
</Tabs>
2025-07-17 22:02:56 +03:00
2025-09-12 20:23:31 +03:00
```json title="Result"
{
"use_tls": true,
"accept_invalid_certs": true
}
```