esp_eap_client_set_certificate_and_key() function
Set client certificate and private key for EAP authentication. This function sets the client certificate and private key to be used during authentication. Optionally, a private key password can be provided for encrypted private keys. @attention 1. The client certificate, private key, and private key password are provided as pointers to the respective data arrays. @attention 2. The client_cert, private_key, and private_key_password should be zero-terminated.
Arguments
client_cert
Pointer to the client certificate data.
client_cert_len
Length of the client certificate data.
private_key
Pointer to the private key data.
private_key_len
Length of the private key data (limited to 1~4096 bytes).
private_key_password
Pointer to the private key password data (optional).
private_key_passwd_len
Length of the private key password data (can be 0 for no password).
Return value
- ESP_OK: The certificate, private key, and password (if provided) were set successfully.
esp_eap_client_set_certificate_and_key() is called by 1 function:
![]()
esp_eap_client_set_certificate_and_key()
esp_eap_client_set_certificate_and_key() writes 6 variables:
![]()
esp_eap_client_set_certificate_and_key()