Embedded TCP/IP stack
4.7.0
|
fnet_return_t fnet_tls_set_ca_certificate | ( | fnet_tls_desc_t | tls_desc, |
const fnet_uint8_t * | ca_certificate, | ||
fnet_size_t | ca_certificate_size | ||
) |
Assign Certificate Authority certificate.
tls_desc | TLS context descriptor |
ca_certificate | Buffer holding CA (Certificate Authority), or trusted root, certificate data, in PEM or DER format. It is used to verify certificates received from peers during the TLS handshake. |
ca_certificate_size | Size of the CA certificate buffer (including the terminating null byte for PEM data). |
This function assign CA (Certificate Authority), or trusted root, certificate to the TLS context.
It is used to verify certificates received from peers during the TLS handshake.
Used mainly by TLS clients.