SetCaFile
Sets the CA certificate file, which is used to verify the server certificate.
Prototype
uint32_t SetCaFile(const char *ca);
Parameters
Parameter |
Type |
Required (Yes/No) |
Description |
|---|---|---|---|
ca |
const char* |
Yes |
Path to the CA certificate file (in PEM format) |
Return Values
Return Value |
Description |
|---|---|
0 |
Success |
Non-zero |
Failure. The file does not exist or the format is incorrect. |
Parent topic: Certificate Configuration APIs