SSL certificate error

Antworten
minsz_ss
Beiträge: 1
Registriert: 27 Okt 2024, 17:11

SSL certificate error

Beitrag von minsz_ss »

I installed opsi server with docker compose, though I'm not able to register any clients here's the error I'm getting in the logs
Opsi service verification error: HTTPSConnectionPool(host='$hostname', port=4447): Max retries exceeded with url: /rpc (Caused by SSLError(SSLCertVerificationError(1, ""[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for '$hostname'. (_ssl.c:1006)")))
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2050
Registriert: 29 Mai 2008, 15:14

Re: SSL certificate error

Beitrag von j.schneider »

Hello,

it seems that the generated certificate is not valid for the address you are using on the client.
You can set the environment variable OPSICONFD_SSL_SERVER_CERT_SANS in your docker-compose.yml to add alternative subject names for the opsi server certificate.

Code: Alles auswählen

OPSICONFD_SSL_SERVER_CERT_SANS: "[opsi.mydomain.tld,10.1.2.3]"
Regards
Jan Schneider


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Antworten