Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LE Zertifikat des Hosts für Dienste verwenden #1186

Open
lonesomewalker opened this issue Sep 17, 2023 · 1 comment
Open

LE Zertifikat des Hosts für Dienste verwenden #1186

lonesomewalker opened this issue Sep 17, 2023 · 1 comment
Projects
Milestone

Comments

@lonesomewalker
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Da es ja quasi schon zum guten Ton gehört, alle Dienste mit entsprechendem Zertifikat abzusichern, wäre es doch auch gut, wenn man bestehende, gültige Zertifikate verwendet, anstelle dem Dummy-Zertifikat.

Describe the solution you'd like
Unter /root/.acme.sh/ liegen die nötigen Files schon, man muß die nur noch:
a) verlinken
b) in die Diensteordner wegkopieren (das machen wir mittlerweile, weniger fehleranfällig, weniger Berechtigungsprobleme)
Dann müssen in den configs der Dienste entsprechend auch die Zertifikate/Fullchains angegeben werden.

Additional context
Zu berücksichtigen wäre Postfix, Dovecot und FTP. Ja, ich habe gesehen, es gibt auch exim und courier. Aber da geht das auch analog.

@d00p d00p added this to the 2.2.x milestone Sep 17, 2023
@d00p d00p added this to To do in 2.2 Sep 17, 2023
@hknet
Copy link

hknet commented Dec 26, 2023

Hallo, bitte gerne auch dafür :)
Aktuell lösen wir das mit einer Krücke:

postfix - main.cf:
smtpd_tls_cert_file = /etc/ssl/froxlor-custom/hostname.crt
smtpd_tls_key_file = /etc/ssl/froxlor-custom/hostname.key
smtpd_tls_CAfile = /etc/ssl/froxlor-custom/hostname_CA.pem

dovecot - conf.d/10-ssl.conf:
ssl_cert = </etc/ssl/froxlor-custom/hostname_fullchain.pem
ssl_key = </etc/ssl/froxlor-custom/hostname.key

proftpd - tls.conf:
TLSRSACertificateFile /etc/ssl/froxlor-custom/hostname.crt
TLSRSACertificateKeyFile /etc/ssl/froxlor-custom/hostname.key
TLSCACertificateFile /etc/ssl/froxlor-custom/hostname_chain.pem

Aber freilich - wenn das Zertifikat aktualisiert wird, dann wissen die drei Dienste davon wenig - daher läuft ein täglicher cronjob, der schaut ob sich das Zertifikat verändert hat und wenn ja, dann einen reload der Dienste auslöst; nicht perfekt - aber "gets the job done".

d00p added a commit that referenced this issue Jan 13, 2024
#1186

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
z-e-r-0-t pushed a commit to z-e-r-0-t/Froxlor that referenced this issue Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
2.2
To do
Development

No branches or pull requests

3 participants