catcert_serialnumber - get certificate serial number as a string
#include <cat/cat.h>
int catcert_serialnumber(const cat_cert *cert, char **serial);
This function extracts the certificate serial number from cert, and returns a pointer to the result as a hex-coded string in *serial.
The function allocates memory that must be freed by the caller.
The function returns 0 if successful, or a negative code on error.
cat, catcert