GithubHelp home page GithubHelp logo

Comments (6)

Ephenodrom avatar Ephenodrom commented on July 17, 2024

Hello @certaintls and thanks for the issue.

The number 2.5.6.5 refers to the organizationUnit Class as described here https://oidref.com/2.5.6.5. What you mean is the organizationalUnitName that has the ObjectIdentifierNumber 2.5.4.11.

In an CSR or certificate the distinguished names ( DN ) offen contain the short version like "ou" that has the number 2.5.4.11. Thats why you receive this number instead of 2.5.6.5.

I will also add the full version for some distinguished names within the map.

from dart-basic-utils.

certaintls avatar certaintls commented on July 17, 2024

I see. Thanks for the information. Maybe I was using it wrong;

To access ou, we need to do data.subject['2.5.4.11'], but for seasonal developers who can't remember these numbers, I was trying to access it like data.subject[X509Utils.DN['organizationalUnit']], but this doesn't work.

Do you have a suggestion on how to access each field by using a human readable name?

from dart-basic-utils.

Ephenodrom avatar Ephenodrom commented on July 17, 2024

Try this :

data.subject[X509Utils.DN['ou']];

As you can see on https://github.com/Ephenodrom/Dart-Basic-Utils/blob/master/lib/src/X509Utils.dart#L35.

from dart-basic-utils.

certaintls avatar certaintls commented on July 17, 2024

I see it now. Thanks. Shall I close this issue or you are still interested in making some improvement?

from dart-basic-utils.

Ephenodrom avatar Ephenodrom commented on July 17, 2024

Let's keep this open, i will make some improvements to the DN map.

from dart-basic-utils.

Ephenodrom avatar Ephenodrom commented on July 17, 2024

I updated the DN list and added the following data :

    'organizationalUnitName': '2.5.4.11',
    'organizationName': '2.5.4.10',
    'stateOrProvinceName': '2.5.4.8',
    'commonName': '2.5.4.3',
    'surname': '2.5.4.4',
    'countryName': '2.5.4.6',
    'localityName': '2.5.4.7',
    'streetAddress': '2.5.4.9'

from dart-basic-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.