Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

Diese Anleitung erzeugt ein Zertifikat mittels DThese instructions generate a certificate using Let's Encrypt. 

Voraussetzungen

Requirements

Der The DNS Namen (dies wird in das Zertifikat eingetragen) muss über DNS aufgelöst werden, und muss auf die IP Adresse vom Load-Balancer geroutet werden.

Vorher kann diese Prozedur nicht angewendet werden.

Hinweis: die automatische Erneuerung des Zertifikats wird (noch) nicht durch diese Anleitung beschrieben.

Durchführung

Certbot Installieren

name (this is entered in the certificate) must be resolved via DNS and must be routed to the IP address of the load balancer.

This procedure cannot be used before that

Note: the automatic renewal of the certificate is not (yet) described by these instructions.

Execution

Installing Certbot

First certbot is installedZuerst wird certbot installiert.

Translations Ignore


Code Block
yum install certbot



Clear Port 80

Freimachen

Then everything running on port 80 must be stopped. On the load balancer this is usually the haproxy itselfAnschließend muss alles was auf Port 80 horcht, gestoppt werden. Auf den Load-Balancer ist dies üblicherweise der haproxy selbst.

Translations Ignore


Code Block
service haproxy stop



Run Certbot

Ausführen

Anschließend wird Then certbot ausgeführt - dieser horcht auf Port 80, und erhält dann eine Anfrage von is executed - it runs on port 80, and then receives a request from Let's Encrypt. 

Hierbei ist es wichtig die erste Zeile anzupassen - dies muss EXAKT den DNS Namen entsprechenHere it is important to adjust the first line - this must correspond EXACTLY to the DNS names

Translations Ignore


Code Block
FQDN_SERVERNAME=myserver.mydomain.com
certbot certonly --standalone --preferred-challenges http --http-01-port 80 -d ${FQDN_SERVERNAME} -d ${FQDN_SERVERNAME}



PEM Erzeugen

Als nächstes wird die Next, the .pem Datei (beinhaltend der vollen Zertifikatskette sowie Private-Key) erzeugtfile (containing the full certificate chain and private key) is generated.

Translations Ignore


Code Block
cat /etc/letsencrypt/live/${FQDN_SERVERNAME}/fullchain.pem /etc/letsencrypt/live/${FQDN_SERVERNAME}/privkey.pem > /etc/haproxy/haproxy.pem

Aufräumen



Clean up

And at the end you can optionally clean upUnd zum Schluss kann optional aufgeräümt werden.

Translations Ignore


Code Block
unset FQDN_SERVERNAME

Weitermachen



Continue

Then continue as described under Anschließend wird wie unter Rolle LB - Zertifikate für Load-Balancer weitergemacht - das Zertifikat liegt in der Datei the certificate is now available in the file /etc/haproxy/haproxy.pem nun vor.

Sv translation
languagede

Diese Anleitung erzeugt ein Zertifikat mittels Let's Encrypt. 

Voraussetzungen

Der DNS Namen (dies wird in das Zertifikat eingetragen) muss über DNS aufgelöst werden, und muss auf die IP Adresse vom Load-Balancer geroutet werden.

Vorher kann diese Prozedur nicht angewendet werden.

Hinweis: die automatische Erneuerung des Zertifikats wird (noch) nicht durch diese Anleitung beschrieben.

Durchführung

Certbot Installieren

Zuerst wird certbot installiert.

Translations Ignore


Code Block
yum install certbot



Port 80 Freimachen

Anschließend muss alles was auf Port 80 horcht, gestoppt werden. Auf den Load-Balancer ist dies üblicherweise der haproxy selbst.

Translations Ignore


Code Block
service haproxy stop



Certbot Ausführen

Anschließend wird certbot ausgeführt - dieser horcht auf Port 80, und erhält dann eine Anfrage von Let's Encrypt. 

Hierbei ist es wichtig die erste Zeile anzupassen - dies muss EXAKT den DNS Namen entsprechen. 

Translations Ignore


Code Block
FQDN_SERVERNAME=myserver.mydomain.com
certbot certonly --standalone --preferred-challenges http --http-01-port 80 -d ${FQDN_SERVERNAME} -d ${FQDN_SERVERNAME}



PEM Erzeugen

Als nächstes wird die .pem Datei (beinhaltend der vollen Zertifikatskette sowie Private-Key) erzeugt.

Translations Ignore


Code Block
cat /etc/letsencrypt/live/${FQDN_SERVERNAME}/fullchain.pem /etc/letsencrypt/live/${FQDN_SERVERNAME}/privkey.pem > /etc/haproxy/haproxy.pem



Aufräumen

Und zum Schluss kann optional aufgeräümt werden.

Translations Ignore


Code Block
unset FQDN_SERVERNAME



Weitermachen

Anschließend wird wie unter Rolle LB - Zertifikate für Load-Balancer weitergemacht - das Zertifikat liegt in der Datei /etc/haproxy/haproxy.pem nun vor.