x509GetSerialHex method

String x509GetSerialHex(
  1. Pointer<X509> cert, {
  2. bool prefixed = true,
})
inherited

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;
}