Seite 1 von 1

SSL certificate error

Verfasst: 27 Okt 2024, 17:17
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)")))

Re: SSL certificate error

Verfasst: 29 Okt 2024, 08:08
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