title: How to parse a CSR when multiple DN OU's are present?
body: <p><a href="https://pyopenssl.org/en/stable/api.html" rel="nofollow noreferrer">Python OpenSSL</a> parses these request files very neatly, but the data is stored in a dictionary. This means when it parses the certificate and finds two distinct values for OU (e.g. OU=Strategic Initiatives OU=Management), it only returns one of them. I need both.</p>
  
  <p>The <a href="https://cryptography.io/en/latest/x509/reference/#x-509-certificate-object" rel="nofollow noreferrer">Python Cryptography</a> library seems to be more granular, but the documentation is awful and I can't figure out how to extract just the text from the fields rather than the strange objects they return. And I'm not sure how if it handles multiple DN OUs.</p>
  
  <p>How do I parse a CSR when multiple OU's are present?</p>