organization property
String?
get
organization
Returns the Organization (O) extracted from the certificate's subject
Distinguished Name, or null if no Organization is present.
Example: For a subject of CN=Example Root CA, O=Example Org, C=US,
this returns Example Org.
Implementation
String? get organization {
final match = RegExp(r'O=([^,]+)').firstMatch(_subject);
return match?.group(1)?.trim();
}