V
V
Vanes Ri_Lax2017-11-20 07:54:44
OpenSSL
Vanes Ri_Lax, 2017-11-20 07:54:44

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();

The example has the following lines:
'privateKeyPath' => 'my-site.com.pem',
   'privateKeyPassword' => 'my-site.com',
   'certPath' => 'my-site.com.pem',

Where can I get it? Can I create this on my computer? What programs do I need for this?
If it's not difficult, then please be more specific.
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2017-11-20
@CityCat4

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

A
Anton, 2017-11-20
@karminski

I think that you need to contact the public services directly. Most likely, the issue of issuing a certificate to you is
paid. It is highly unlikely that a portal will accept self-signed certificates. I think that esia should know the "client".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question