SetTlsCertAndKeyFile
Sets the TLS client certificate and private key file.
Prototype
uint32_t SetTlsCertAndKeyFile(const char *tlsCert, const char *tlsKey, const char *keyPwd);
Parameters
Parameter |
Type |
Required (Yes/No) |
Description |
|---|---|---|---|
tlsCert |
const char* |
Yes |
Path to the TLS certificate file (in PEM format) |
tlsKey |
const char* |
Yes |
Path to the TLS private key file (in PEM format) |
keyPwd |
const char* |
No |
Private key password. This parameter is required if the private key is encrypted, and a value of NULL indicates that the private key has no password. |
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