mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 20:06:21 +01:00
30 lines
544 B
Markdown
30 lines
544 B
Markdown
---
|
|
title: "Enable SSL"
|
|
aliases:
|
|
- pybytes/api/enable_ssl
|
|
---
|
|
|
|
Enable SSL
|
|
|
|
**Method**
|
|
----
|
|
**pybytes.enable_ssl(ca_file, dump_ca)**
|
|
|
|
**Parameters**
|
|
----
|
|
| name | Description | is Required | Default value
|
|
| ------------- |:-------------:|:-------------:|:-------------:|
|
|
| ca_file | File Path | No | /flash/cert/pycom-ca.pem |
|
|
| dump_ca | Dump_ca | No | Yes |
|
|
|
|
**Example**
|
|
----
|
|
`pybytes.enable_ssl('/flash/cert/pycom-ca.pem', True)`
|
|
|
|
**Success Response**
|
|
----
|
|
|
|
```
|
|
>> Please reset your module to apply the new settings
|
|
```
|