Extract certificate issuer or subject name into a buffer

What functions would I use if I had a parsed X509 certficicate and I wanted to extract it’s issuer or subject CN into a buffer as a string?

Hi TrinityTponic,
You can look at the implementation of mbedtls_x509_crt_info() to understand how to extract the certificate information such as subject or issuer into a string.
Mbed TLS Team member