version property

int get version

Gets the version of the certificate. Returns 1 for V1, 3 for V3.

Implementation

int get version {
  final v = _context.bindings.X509_get_version(handle);
  return v + 1;
}