Answer the question
In order to leave comments, you need to log in
Where can I get certificates for authorization through ESIA?
Good afternoon,
you need to do authorization on the site through esia using OAuth2.0. I found a ready-made solution
on github , downloaded it, uploaded it to the root of the site.
As I wrote in the documentation, the following:
$config = [
'clientId' => 'INSP03211',
'redirectUrl' => 'http://my-site.com/response.php',
'portalUrl' => 'https://esia-portal1.test.gosuslugi.ru/',
'privateKeyPath' => 'my-site.com.pem',
'privateKeyPassword' => 'my-site.com',
'certPath' => 'my-site.com.pem',
'tmpPath' => 'tmp',
];
$esia = new \esia\OpenId($config);
echo $esia->getUrl();
'privateKeyPath' => 'my-site.com.pem',
'privateKeyPassword' => 'my-site.com',
'certPath' => 'my-site.com.pem',
Answer the question
In order to leave comments, you need to log in
If ESIA accepts any certificates - generate them. Tons of waste paper have been written about how to generate a self-signed certificate. If it accepts only state ones - get it from the state, of course.
UPD Just because the topic of certificates cannot be overcome, google more
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question