mbedtls_x509_serial_gets() function
Store the certificate serial in printable form into buf; no more than size characters will be written.
Arguments
size
Maximum size of buffer
serial
The X509 serial to represent
Return value
The length of the string written (not including the terminated nul byte), or a negative error code.