Hi,
I’m currently working on the following setup:
UCS 4.4 running on a KVM root server, acting as:
- public DNS
- public NTP
- dovecot+postfix with SPF, DKIM, DMARC configured
- nextcloud
- firewall
- SSHD with certificate access
- maybe additional services like JITSI, etc.
Once finished, I’d love to write a (blog) post about my setup, since it might be useful for others.
During my initial setup, I have activated letsencrypt for mydomain.tld, but now decided to change it to hostname.mydomain.tld. Unfortunately, the UCS portal is still serving hostname.mydomain.tld with the domain’s self signed certificate.
So far I’ve checked the following:
UCS variables
apache2/ssl/certificate=/etc/univention/letsencrypt/signed_chain.crt
apache2/ssl/key=/etc/univention/letsencrypt/domain.key
Certificates
openssl x509 -in signed_chain.crt --text
Apache2 Config
/etc/apache2/sites-enabled/default-ssl.conf
shows
<IfModule mod_ssl.c>
<VirtualHost *:443>
IncludeOptional /etc/apache2/ucs-sites.conf.d/*.conf
SSLEngine on
SSLProxyEngine on
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLCertificateFile /etc/univention/letsencrypt/signed_chain.crt
SSLCertificateKeyFile /etc/univention/letsencrypt/domain.key
SSLCACertificateFile /etc/univention/ssl/ucsCA/CAcert.pem
#SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
### To enable special log format for HTTPS-access
# LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %p" combinedssl
# CustomLog /var/log/apache2/access.log combinedssl ## with port number
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=10886400; includeSubDomains"
</IfModule>
ProxyPass /nextcloud http://127.0.0.1:40000/nextcloud retry=0
ProxyPassReverse /nextcloud http://127.0.0.1:40000/nextcloud
</VirtualHost>
</IfModule>
So the certificate seems to be ok and also the apache2 config… I have not idea, else might be wrong.
I’d highly appreciate your help.
Best regards
pate