Hi@all,
I would like to make SSO externally accessible. To do this, I follow these instructions:
The initial situation is as follows. ucs-sso is on the master. This was installed with an internal domain. srv01.internal.local / 192.168.24.5
Thus, “Scenario 2, Portal and Single Sign On at the same FQDN” is relevant for me, right?
With the penultimate command, I get an error because no certificate is available for the new host name.
FQDN=ucs-sso.external.de
ucr set ucs/server/sso/autoregistraton=no \
saml/idp/entityID="https://${FQDN}/simplesamlphp/saml2/idp/metadata.php" \
ucs/server/sso/fqdn=$FQDN \
umc/saml/sp-server=$FQDN \
ucs/server/sso/virtualhost=false \
echo "ServerName $FQDN" >>/etc/apache2/ucs-sites.conf.d/servername.conf
univention-run-join-scripts --force --run-scripts 91univention-saml.inst
ucr set umc/saml/idp-server=https://${FQDN}/simplesamlphp/saml2/idp/metadata.php
Setting umc/saml/idp-server
Module: setup_saml_sp
Try to download idp metadata (1/60)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4966 0 4966 0 0 66008 0 --:--:-- --:--:-- --:--:-- 66213
[ ok ] Reloading univention-management-console-web-server configuration (via systemctl): univention-management-console-web-server.service.
Multifile: /etc/pam.d/univention-management-console
File: /etc/ldap/sasl2/slapd.conf
Traceback (most recent call last):
File "<stdin>", line 11, in <module>
File "/usr/share/univention-management-console/saml/sp.py", line 110, in <module>
tmpfile.write(get_cert())
File "/usr/share/univention-management-console/saml/sp.py", line 35, in get_cert
with open(CONFIG['cert_file'], 'rb') as cert_file:
IOError: [Errno 2] No such file or directory: '/etc/univention/ssl/ucs-sso.external.de/cert.pem'
Logical. This file/certificate does not exist. I do not need an official certificate (LE) here, but a self-signed one is sufficient. How do I create this?
with best
sven