Embedded TCP/IP stack
4.7.0
|
fnet_return_t fnet_tls_set_own_certificate | ( | fnet_tls_desc_t | tls_desc, |
const fnet_uint8_t * | own_certificate, | ||
fnet_size_t | own_certificate_size, | ||
const fnet_uint8_t * | private_key, | ||
fnet_size_t | private_key_size | ||
) |
Set own certificate chain and private key.
tls_desc | TLS context descriptor |
own_certificate | Buffer holding own public certificate chain, in PEM or DER format. |
own_certificate_size | Size of the public certificate chain buffer (including the terminating null byte for PEM data). |
private_key | Buffer holding the own private key, in PEM or DER format. |
private_key_size | Size of the private key buffer (including the terminating null byte for PEM data). |
This function assign own public certificate chain and own private key to the TLS context.
Used mainly by TLS servers.