Get the serial number of the certificate as a hex string.
The caller should free the returned data using g_free when it is no longer required.
a Certificate
an allocated string containing the serial number as hex.