uint8_t certificateSerialNumber[] = {0x02, 0x04, 0x24,0xA8,0x16,0x34};
The decimal 614995508 (actual serial number)is converted to hexadecimal 24A81634.
The above unit8 array is the representation on TLV(tag length value) triplet of serial number where T is 0X02, L is 0X04 and V is the hexadecimal string.
So i'm able to split the hexadecimal string by two characters at a time
How to convert hexdecmial to TLV triplet format as shown above in unit8_t array in objective-c? reference: https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-integer