Skip to content

Доп. данные из Adapik\CMS\Subject #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Krakozaber opened this issue Jan 15, 2025 · 0 comments
Open

Доп. данные из Adapik\CMS\Subject #5

Krakozaber opened this issue Jan 15, 2025 · 0 comments

Comments

@Krakozaber
Copy link

Krakozaber commented Jan 15, 2025

В сертификате КЭП в РФ имеются доп. поля

изображение

Вижу два варианта решения проблемы

  1. Добавить их OID в Subject
  2. Изменить область видимости Adapik\CMS\Subject::getValueByOid на public

Пока выкрутился так:

$method = new ReflectionMethod($subject::class, 'getValueByOid');
$method->setAccessible(true);
$ogrn = $method->invoke($subject, '1.2.643.100.1');

p.s. Огромное спасибо за Ваш труд.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant