Administration
×

Nachricht

Failed loading XML... xmlParseEntityRef: no name xmlParseEntityRef: no name xmlParseEntityRef: no name xmlParseEntityRef: no name xmlParseEntityRef: no name xmlParseEntityRef: no name Specification mandate value for attribute async Opening and ending tag mismatch: link line 1 and head Opening and ending tag mismatch: br line 1 and div Opening and ending tag mismatch: div line 1 and li Attribute data-analytics-text redefined Opening and ending tag mismatch: li line 1 and ul Opening and ending tag mismatch: ul line 1 and nav attributes construct error Couldn't find end of Start Tag a line 1 Opening and ending tag mismatch: li line 1 and a Opening and ending tag mismatch: ul line 1 and li Opening and ending tag mismatch: pfe-navigation-dropdown line 1 and ul Opening and ending tag mismatch: div line 1 and pfe-navigation-dropdown Opening and ending tag mismatch: nav line 1 and div Specification mandate value for attribute consistent-height Entity 'nbsp' not defined Entity 'nbsp' not defined error parsing attribute name attributes construct error Couldn't find end of Start Tag cp-search-autocompletepath line 1 Opening and ending tag mismatch: div line 1 and cp-search-autocomplete Opening and ending tag mismatch: form line 1 and div Opening and ending tag mismatch: div line 1 and form Entity 'nbsp' not defined Entity 'nbsp' not defined EntityRef: expecting ';' EntityRef: expecting ';' EntityRef: expecting ';' Opening and ending tag mismatch: br line 1 and div xmlParseEntityRef: no name Specification mandate value for attribute delayDOMDisplay attributes construct error Couldn't find end of Start Tag div line 1 Specification mandate value for attribute delayDOMDisplay Specification mandate value for attribute border attributes construct error Couldn't find end of Start Tag pfe-card line 1 Specification mandate value for attribute indeterminate attributes construct error Couldn't find end of Start Tag pfe-progress-indicator line 1 Opening and ending tag mismatch: article line 1 and pfe-progress-indicator expected '>' Opening and ending tag mismatch: section line 1 and a Opening and ending tag mismatch: div line 1 and section Specification mandate value for attribute indeterminate attributes construct error Couldn't find end of Start Tag pfe-progress-indicator line 1 Opening and ending tag mismatch: article line 1 and pfe-progress-indicator expected '>' Opening and ending tag mismatch: section line 1 and a Opening and ending tag mismatch: article line 1 and section Specification mandate value for attribute indeterminate attributes construct error Couldn't find end of Start Tag pfe-progress-indicator line 1 Opening and ending tag mismatch: article line 1 and pfe-progress-indicator expected '>' Opening and ending tag mismatch: section line 1 and a Opening and ending tag mismatch: div line 1 and section Opening and ending tag mismatch: div line 1 and article Specification mandate value for attribute indeterminate attributes construct error Couldn't find end of Start Tag pfe-progress-indicator line 1 Opening and ending tag mismatch: section line 1 and pfe-progress-indicator Opening and ending tag mismatch: div line 1 and section Opening and ending tag mismatch: main line 1 and div Opening and ending tag mismatch: div line 1 and pfe-card Specification mandate value for attribute border attributes construct error Couldn't find end of Start Tag pfe-card line 1 Specification mandate value for attribute indeterminate attributes construct error Couldn't find end of Start Tag pfe-progress-indicator line 1 Opening and ending tag mismatch: article line 1 and pfe-progress-indicator expected '>' Opening and ending tag mismatch: section line 1 and a Opening and ending tag mismatch: div line 1 and section Specification mandate value for attribute indeterminate attributes construct error Couldn't find end of Start Tag pfe-progress-indicator line 1 Opening and ending tag mismatch: article line 1 and pfe-progress-indicator expected '>' Opening and ending tag mismatch: section line 1 and a Opening and ending tag mismatch: article line 1 and section Specification mandate value for attribute indeterminate attributes construct error Couldn't find end of Start Tag pfe-progress-indicator line 1 Opening and ending tag mismatch: article line 1 and pfe-progress-indicator expected '>' Opening and ending tag mismatch: section line 1 and a Opening and ending tag mismatch: div line 1 and section Opening and ending tag mismatch: body line 1 and div Opening and ending tag mismatch: meta line 1 and article Opening and ending tag mismatch: meta line 1 and pfe-card Opening and ending tag mismatch: meta line 1 and div Opening and ending tag mismatch: head line 1 and div Opening and ending tag mismatch: html line 1 and div Extra content at the end of the document

Let’s Encrypt in CentOS 6 und CentOS 7 einrichten

Let’s Encrypt empfiehlt einige Clients, die mit CentOS kompatibel sind. Wir denken, dass CertBot von der non-profit Electronic Frontier Foundation eine sehr gute Wahl ist, wenn dieser richtig eingerichtet ist und beschreiben daher diesen.

System Update

Für eine korrekte Funktion benötigt CertBot viele Pakete. Daher führen wir zunächst ein Update aller Pakete aus:

yum -y update

Dann wird das EPEL (Extra Packages for Enterprise Linux) Repositrory installiert, um die aktuellsten Python Pakete für CertBot zu erhalten:

# yum -y install epel-release

Achtung: Wenn der Server individuell konfiguriert wurde, kann eine Update die Webseite beeinflussen. Wenn dies geschieht, sollte ein Serverexperte konsultiert werden.

CertBot von EFF holen

CertBot ist im CentOS 7 EPEL Repository verfügbar, unter CentOS 7 wird CertBot also installiert durch Eingabe von:

yum -y install python-certbot-apache

Unter CentOS 6 wird das Programm wie folgt heruntergeladen und ausführbar gemacht:

# wget https://dl.eff.org/certbot-auto
# chmod 755 certbot-auto

Apache mit CertBot konfigurieren

Unter CentOS 6 und 7 ist Apache der übliche Webserver. Wir beschreiben daher hier die Konfiguration mit diesem.

CertBot bietet ein Plugin um Apache zu konfigurieren. Zum Starten folgenden Befehl eingeben:

certbot --apache

CertBot listet dann alle Domains auf, die auf dem Webserver eingerichtet sind und fragt danach, für welche Domains SSL konfiguriert werden soll.

 Domains auswählen mit Pfeiltasten und Leertaste

Die nächsten beiden Schritte fragen nach der Administrator Email-Adresse und nach Bestätigung der Lizenzbestimmungen. Danach wird gefragt, ob alle Zugriffe über HTTPS erfolgen sollen.

empfehlenswert ist die komplette Verschlüsselung

Eine komplette Verschlüsselung der ganzen Webseite ist immer vorzuziehen, da dies vor Fälschen der Inhalte und vielen webbasierten Attacken schützt. Wenn die Webseite allerdings hart kodierte Links enthält, also http://homepage.eu, resultiert daraus ein Zertifikat-Fehler - also alle Links auf https ändern.

Automatische Verlängerung konfigurieren

Let's Encrypt Zertifikate laufen nach 90 Tagen ab. Also sollte ein Cron Job eingerichtet werden, der diese alle 85 Tage verlängert. Davor sollte ein Testlauf  (Dry Run) durchgeführt werden, um sicher zu gehen, dass alles funktioniert:

# certbot renew --dry-run

Wenn alles in Ordnung ist, folgenden Befehl in die Crontab (täglich) aufnehmen:

certbot renew --quiet

Mögliche Probleme

CertBot macht einiges einfacher, aber es kann zu Problemen bei der Einrichtung kommen, wie z.B.

  1. Apache Konfiguration blockiert Zugriff auf versteckte Verzeichnisse
    Der Let's Encrypt Client schreibt in ein Verzeichnis names '.well-known' um die Identität des Client zu verifizieren. Also sicherstellen, dass die Apache Konfiguration den Zugriff auf versteckte Verzeichnisse erlaubt.
  2. Domain weisst nicht auf den Server
    Sicherstellen, dass die Domains (und Subdomains) auf den Server verweisen.
  3. Webseite mit Passwort-Schutz
    Den Passwortschutz aufheben, falls einer besteht.
  4. Paket-Konflikte bei unterschiedlichen Repositories
    Beim Update des Servers oder der Nutzung verschiedener Pakete können Versions-Konflikte auftreten. Sorgfälltig kontrollieren, dass keine Anwendungen beeinträchtigt werden - insbesondere wenn Python Web Applikationen eingesetzt werden.

 

 

 

 

 

 

 

Letzte Änderung am Freitag, 31 März 2017 12:17

Customer ReviewsSchreibe eine Bewertung
Es gibt aktuell keine Bewertungen.
Schreibe eine Bewertung

Mehr in dieser Kategorie:

Share This

Follow Us

 

freelancermap.de - IT Projektvermittlung für Selbständige und Freiberufler

Zum Seitenanfang