Remote Opsi
-
siil-itman
- Beiträge: 13
- Registriert: 24 Dez 2025, 10:01
Remote Opsi
I've got the opsi-config server running on Debian 12 on our internal network.
I've setup the public DNS to point to our Nginx reverse proxy as per the details here
I can access opsi.example.com:4447 from outside of our network and get the welcome page.
If I try open opsi-configed, it comes up with a certificate error (unable to validate certificate) and asks about trusting the certificate. Clicking on "Always trust" or "Trust once" then states that it can't download the certificate from opsi.example.com:4447/ssl/ca-certs.pem and I can't login.
How can I get around this? Do I need to tweak anything on the reverse proxy?
- j.schneider
- uib-Team
- Beiträge: 2149
- Registriert: 29 Mai 2008, 15:14
Re: Remote Opsi
All OPSI components (opsi-client-agent, opsi-configed, opsi-depotserver, ...) will only trust the OPSI internal chain.
Have a look at the documentation for details:
https://docs.opsi.org/opsi-docs-en/4.3/ ... s/tls.html
In a setup with reverse proxy, I would recommend our extensions Let’s Encrypt or Custom-CA, see:
https://opsi.org/en/product/extensions
But if you want to tinker a bit, you can also use the certificates from the OPSI server (/etc/opsi/ssl) on the proxy.
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
-
siil-itman
- Beiträge: 13
- Registriert: 24 Dez 2025, 10:01
Re: Remote Opsi
How do I find the password for the default CA key it generates?
-
siil-itman
- Beiträge: 13
- Registriert: 24 Dez 2025, 10:01
Re: Remote Opsi
As per the information here, if we are going to setup the system to use a custom CA, I can declare the ssl-ca-key-passphrase in the opsiconfd.conf for the CA key. How do I declare the passphrase for the opsiconfd-key.pem?
If we are going to use the opsi server as an intermediate CA instead, can you clarify what I need to set in the opsiconfd.conf and the opsi.conf?
- j.schneider
- uib-Team
- Beiträge: 2149
- Registriert: 29 Mai 2008, 15:14
Re: Remote Opsi
The certificate of the Custom CA must be appended to "/etc/opsi/ssl/opsi-ca-cert.pem".
The private key of the Custom CA is not required and must not be stored on the OPSI server.
The server private key and certificate are managed externally by the Custom CA, but must be installed on the OPSI server as "/etc/opsi/ssl/opsiconfd-key.pem" and "/etc/opsi/ssl/opsiconfd-cert.pem". If "opsiconfd-key.pem" is encrypted, the corresponding passphrase must be configured via "ssl-server-key-passphrase".
The procedure for configuring the OPSI CA as an intermediate CA is described here:
https://docs.opsi.org/opsi-docs-en/4.3/ ... termediate
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
-
siil-itman
- Beiträge: 13
- Registriert: 24 Dez 2025, 10:01
Re: Remote Opsi
After the rebuild, i'm seeing a warning for SSL and two errors relating to products and packages.
Is this something I can ignore or is it something that needs fixing. If fixing, how?SSL: WARNING
1 issue(s) found.
WARNING - The subject of the CA has changed from {'C': '**', 'ST': '**', 'L': '**', 'O': '**l', 'OU': '** IT', 'CN': 'opsi CA'} to {'C': 'DE', 'ST': 'RP', 'L': 'MAINZ', 'O': 'uib', 'OU': 'opsi@**', 'CN': 'opsi CA', 'emailAddress': 'opsi@**'}.
The Errors are
Any advice on fixing the errors?System packages: ERROR
Could not find a suitable TLS CA certificate bundle, invalid path: true
Products On Depots: ERROR
Failed to get package info from repository 'https://opsipackages.43.opsi.org/stable ... gpack.zstd': Could not find a suitable TLS CA certificate bundle, invalid path: true
Once I get feedback on the above, I will look at the remote connection
Thanks
-
siil-itman
- Beiträge: 13
- Registriert: 24 Dez 2025, 10:01
Re: Remote Opsi
-
siil-itman
- Beiträge: 13
- Registriert: 24 Dez 2025, 10:01
Re: Remote Opsi
I'm seeing the traffic hit the reverse proxy but it's not going past the reverse proxy.
This is my conf file for the connection
Code: Alles auswählen
server {
listen 4447;
server_name opsi.example.com;
location / {
proxy_pass https://***.***.***.***:4447;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
}
location ~ /.well-known {
allow all;
proxy_pass https://***.***.***.***:4447;
proxy_http_version 1.1;
}
listen 443 ssl; # managed by Certbot
# ssl_certificate /etc/nginx/certs/opsiconfd.pem;
# ssl_certificate_key /etc/nginx/certs/opsiconfd-k.pem;
ssl_certificate /etc/letsencrypt/live/opsi.siil.com.qa/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/opsi.siil.com.qa/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}What do I need to tweak in my setup to get this working?