title: Parse X509 Certificates in dart and extract Common name
body: <p>Hi I have a public key which is like </p>
  
  <p>-----BEGIN CERTIFICATE-----</p>
  
  <p>xya.....</p>
  
  <p>21esafd......</p>
  
  <p>-----END CERTIFICATE-----</p>
  
  <p>I am trying to extract the common name from the certificate. I could do it online through many pem parsers. Is there a way to achieve this in dart or should i build java-native bridge to achieve this? Also Please note that I am trying to implement a flow which enforces blockchain.</p>
  
  <p>I have tried PemDecode/Encoder. All it does is base64 encode the certificate.</p>