Embedded TCP/IP stack  4.7.0

◆ fnet_tls_set_own_certificate()

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.

Parameters
tls_descTLS context descriptor
own_certificateBuffer holding own public certificate chain, in PEM or DER format.
own_certificate_sizeSize of the public certificate chain buffer (including the terminating null byte for PEM data).
private_keyBuffer holding the own private key, in PEM or DER format.
private_key_sizeSize of the private key buffer (including the terminating null byte for PEM data).
Returns
This function returns:
See also
fnet_tls_init()

This function assign own public certificate chain and own private key to the TLS context.
Used mainly by TLS servers.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net