I
I
Ilya Saligzhanov2020-05-29 11:43:04
PHP
Ilya Saligzhanov, 2020-05-29 11:43:04

How to parse guest .cer in PHP?

Are there libraries that do the same job as the standard PHP openssl_x509_read and openssl_x509_parse but work with GOST certificates?
Ordinary functions return bool(false) when trying to read/parse

ps GOST 34.10.11-2012

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Saligzhanov, 2020-06-01
@Le_Traceur_Snork

As a result, the phpseclib library and its X509 class saved it.
In any case, thanks to galaxy

G
galaxy, 2020-05-29
@galaxy

In openssl, you can tie GOSTs - https://github.com/gost-engine/engine/blob/master/...
If this does not suit you, then there is hardly an analogue.
If you just need to parse the certificate, then take ASN.1 (for example, https://github.com/FGrosse/PHPASN1 ). The structure will not be easy, but you can figure it out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question