x509GetSerialHex method
Gets certificate serial as hexadecimal string.
Implementation
String x509GetSerialHex(Pointer<X509> cert, {bool prefixed = true}) {
final bytes = x509GetSerialBytes(cert);
final hex = _bytesToHex(bytes);
return prefixed ? '0x$hex' : hex;
}