Answer the question
In order to leave comments, you need to log in
How to set up 1C OpenID authentication?
We have an Apache2.4 web server on Centos 7, works on https. The certificate is self-signed. 2 bases are published on it.
I created the certificate like this:
<?xml version="1.0" encoding="UTF-8"?>
<point xmlns="http://v8.1c.ru/8.2/virtual-resource-system"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
base="/openidprov"
ib="Srvr=srv1c;Ref=OpenIDProv;">
<standardOdata enable="false"
reuseSessions="autouse"
sessionMaxAge="20"
poolSize="10"
poolTimeout="5"/>
<b><openid>
<provider>
<lifetime>86400</lifetime>
</provider>
</openid></b>
</point>
<?xml version="1.0" encoding="UTF-8"?>
<point xmlns="http://v8.1c.ru/8.2/virtual-resource-system"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
base="/test-openid-client"
ib="Srvr=srv1c;Ref=test-openid-client;">
<standardOdata enable="false"
reuseSessions="autouse"
sessionMaxAge="20"
poolSize="10"
poolTimeout="5"/>
<openid>
<rely url="https://srv1c-cl-testssl2-web/openidprov/e1cib/oid2op" />
</openid>
</point>
<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds" xmlns="xri://$xrd*($v*2.0)">
<XRD>
<Service priority='0'>
<Type>http://specs.openid.net/auth/2.0/server</Type>
<URI>https://srv1c-cl-testssl2-web/openidprov/e1cib/oid2op</URI>
</Service>
</XRD>
</xrds:XRDS>
Answer the question
In order to leave comments, you need to log in
I solved the issue by moving to Ubuntu16.04. The problem is that I can't install ca.crt (the certificate with which web server certificates are signed) in the Centos7 storage, 1C can't find it in any way. But on Ubuntu, this certificate is installed like this:
sudo install -m 0644 ca.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
sudo reboot
With this answer and the question, where it is described how I set up OpenID for 1C, you can solve the problem.
Do clients trust your self-signed certificate? Are you sure that all clients had the root certificate imported correctly? It won't take off without it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question