M
M
Maxim Morozov2016-09-28 16:20:20
PHP
Maxim Morozov, 2016-09-28 16:20:20

How to teach openssl in php under Windows to recognize Russian fields in a certificate (OGRN, TIN, SNILS)?

There is a valid certificate. You need to parse it. The php function openssl_x509_parse() is used.
The certificate is parsed, but Russia-specific OIDs fall into the undefined section. Where can they be described?
I added this to openssl.cfg:

[ new_oids ]
# Russian pension security number. Numeric string
SNILS = 1.2.643.100.3
# Organization number in the state registry (for organizations or individual
# businessmen) Numeric string
OGRN = 1.2.643.100.1
# Individual insurance number (Numeric String)
INN = 1.2.643.3.131.1.1
# cert extension to indicate subject sign tool (value - utf8 string)
subjectSignTool=1.2.643.100.111

did not help

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question