Git Product home page Git Product logo

Comments (9)

avkluchko avatar avkluchko commented on August 12, 2024 1

Hi! Thank you for using this package. When I developed it, I only tested it on the certificates I had available. But, as far as I know, there can be quite a lot of options for describing the certificate subject. I take it to work. Thanks!

from x509-bundle.

avkluchko avatar avkluchko commented on August 12, 2024

I think I fixed it. Can you check this?

from x509-bundle.

4n70w4 avatar 4n70w4 commented on August 12, 2024

INN still is null. May be because leading zeros may be added for fill 12 chars.
But some inn may correctly start from zero. Example: 0103008227

May be better read OIDS instead guess key name by content.

https://2410000.ru/p_45_obektnyj_identifikator_oid.html

https://www.nalog.ru/html/docs/proj_treb121112.doc page 4

Also SNILS still is null. May be because leading zeros may be added.

from x509-bundle.

4n70w4 avatar 4n70w4 commented on August 12, 2024

In rnix/php-fpm-gost docker image INN, OGRN and SNILS presented in raw openssl_x509_parse().

from x509-bundle.

avkluchko avatar avkluchko commented on August 12, 2024

In rnix/php-fpm-gost docker image INN, OGRN and SNILS parsed out of the box.

I think it depends on the OpenSSL version. I'm testing on OpenSSL versions 1.1 and 1.0, and everything works

from x509-bundle.

4n70w4 avatar 4n70w4 commented on August 12, 2024

I update comment #1 (comment) to clear up the ambiguity.

from x509-bundle.

avkluchko avatar avkluchko commented on August 12, 2024

I tried the package work with my certificates (old and new) in rnix/php-fpm-ghost, the values of INN, OGRN and SNILS are returned correctly. You do not return INN AND SNILS for all certificates?

from x509-bundle.

avkluchko avatar avkluchko commented on August 12, 2024

INN still is null. May be because leading zeros may be added for fill 12 chars.
But some inn may correctly start from zero. Example: 0103008227

I changed package avkluchko/government-bundle for working with short INN. To try this you need to update composer dependencies.

from x509-bundle.

avkluchko avatar avkluchko commented on August 12, 2024

I found and fixed an incorrect calculation of the SNILS checksum in another my package. In addition, I checked this package with openssl 1.0.2, the information received is correct for my certificates. If you still don't work correctly, let's look specifically at your certificates?

from x509-bundle.

Related Issues (1)

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.