Nextcloud 21 - Installation mit einem Script auf einem VPS Server - c-rieger Script

Hallo Forum,

folgende Installationvariante habe ich ausprobiert:

Port 80 und Port 443 mĂŒssen in Firewall von VPS Server frei gegeben werden.

Am Ende muss man eingeben:

sed -i '/ssl-cert-snakeoil/d' /etc/nginx/conf.d/nextcloud.conf
sed -i s/#\ssl/\ssl/g /etc/nginx/conf.d/nextcloud.conf
service nginx restart

Kann man diese mit coypy & paste tun, wenn man eine ssh Verbindung nutzt?

Optional: Einrichtung von SSL ĂŒber Let’s Encrypt

Bitte stellen Sie zuerst sicher, dass Ihr Server sowohl ĂŒber Port 80/TCP als auch ĂŒber Port 443/TCP von außen erreichbar ist.

Muss der Port 80 (http://) dauerhaft freigegeben sein?

MfG
nc-kay

Edit, 25. Feb. 2021: Port 80

Last updated: Jan 24, 2019 | See all Documentation

We occasionally get reports from people who have trouble using the HTTP-01 challenge type because they’ve firewalled off port 80 to their web server. Our recommendation is that all servers meant for general web use should offer both HTTP on port 80 and HTTPS on port 443. They should also send redirects for all port 80 requests, and possibly an HSTS header (on port 443 requests).

Allowing port 80 doesn’t introduce a larger attack surface on your server, because requests on port 80 are generally served by the same software that runs on port 443.

Closing port 80 doesn’t reduce the risk to a person who accidentally visits your website via HTTP. In normal circumstances, that person would receive a redirect to HTTPS, and their subsequent traffic will be protected. If that person was subject to an active MITM, the MITM would answer on port 80, so your site would never have a chance to answer “connection refused.”

Lastly, keeping port 80 open in order to serve a redirect helps get people to the right version of your site (the HTTPS version). There are various situations beyond your control that might briefly land someone on the HTTP version of your site - for instance, automatic linkification in emails, or manually typing a domain name. It’s better for them to get a redirect than an error.

Unfortunately, you might not have control over whether port 80 is blocked for your site. Some (mostly residential) ISPs block port 80 for various reasons. If your ISP does this but you’d still like to get certificates from Let’s Encrypt, you have two options: You can use DNS-01 challenges or you can use one of the clients that supports TLS-ALPN-01 challenges (on port 443).

Kann man diese mit coypy & paste tun, wenn man eine ssh Verbindung nutzt?

Jup

Muss der Port 80 (http://) dauerhaft freigegeben sein?

Jup. Sonst können die Zertifikate nicht automatisch erneuert werden. Sicherheitstechnisch ist das aber kein Problem, weil mit diesem Script ja auch eine permanente Weiterleitung auf HTTPS eingerichtet wird.

1 Like

OT

Hallo, ich bekomme bei der heutigen Installaton folgenden Fehler:

[Do 25. Feb 09:41:30 CET 2021] Create new order error. Le_OrderFinalize not found. {
“type”: “urn:ietf:params:acme:error:rateLimited”,
“detail”: “Error creating new order :: too many certificates already issued for exact set of domains:nc-kay.dynv6.net: see Rate Limits - Let's Encrypt”,
“status”: 429
}
[Do 25. Feb 09:41:30 CET 2021] Please add ‘–debug’ or ‘–log’ to check more details.
[Do 25. Feb 09:41:30 CET 2021] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

Dazu habe ich gefunden:

If you have a large number of pending authorization objects and are getting a Pending Authorizations rate limiting error, you can trigger a validation attempt for those authorization objects by submitting a JWS-signed POST to one of its challenges, as described in the ACME spec. The pending authorization objects are represented by URLs of the form https://acme-v02.api.letsencrypt.org/acme/authz/XYZ, and should show up in your client logs. Note that it doesn’t matter whether validation succeeds or fails. Either will take the authorization out of ‘pending’ state. If you do not have logs containing the relevant authorization URLs, you need to wait for the rate limit to expire. As described above, there is a sliding window, so this may take less than a week depending on your pattern of issuance.

Nur wie setze ich das um?
Wie fĂŒhre ich einen Reset aus?

Hatte ich auch schon beim testen. Da bleibt dir nichts anderes ĂŒbrig als zu warten oder eine andere (Sub-)Domain zu verwenden.

Wie lange muss man warten?

1 Woche so weit ich weiß

Ich weiss es nicht genau. So viel ich weiss, steht das irgendwo auf de Let’s Encrypt Seite. Bei mir waren es ein paar Tage, wenn ich mich richtig erinnere.

Ich wĂŒrde dir empfehlen einen Domainnamen zu registrieren. Dann kannst du so viele Subdomains nutzen wie du willst. Wenn du ein Rate Limit erreichst, nutzt du einfach testserver2.deinedomain.de usw


Wenn es dir nur darum geht, die FunktionalitĂ€t von Letsencrypt zu testen. kannst du auch certbot --dry-run oder acme.sh --test nutzen. Dann wird kein neues Zertifikat gezogen und es gibt keine Rate Limits. Eine weitere Möglichkeit wĂ€re, die Zertifikate wegzukopieren und sie manuell wieder hinzuzufĂŒgen bei einer Neuinstallation. Ist natĂŒrlich wenn du Scripts testen willst, die den Let’s Encrypt-Client nutzen nicht unbedingt parktikabel.

Kann das jemand mehr zu sagen?

Es steht ja sogar in dem Link, den du gepostet hast
 :wink:

Renewals are treated specially: they don’t count against your Certificates per Registered Domain limit, but they are subject to a Duplicate Certificate limit of 5 per week.

1 Like

Du hast keine “large number of pending authorisations”. Du hast " too many certificates already issued". Da kann man nichts machen, befĂŒrchte ich.

Ja, wiegesagt: 1 Woche muss man in dem Fall warten.

Hallo, ist das Zertifikate mit dem VPS Server, der jeweiligen Installation verkoppelt?

Oder kann ich das Zertifikat fĂŒr Installation_1 und dann, wenn Installation_1 gelöscht fĂŒr Installation_2 verwenden?

Wenn die maximale Anzahl an Zertifikaten fĂŒr eine bestimmte (Sub-)Domain ĂŒberschritten ist kannst du nichts mehr tun außer 1 Woche zu warten, falls du erneut lets encrypt einrichten willst. Davon abgesehen ist es evtl. Möglich das neueste Zertifikat, falls auf dem Server noch vorhanden, manuell zu kopieren bzw. wiederzuverwenden. Aber kp wie genau.

Hallo, welche Probleme gibt es wenn ich diese Woche Domain-1 und nĂ€chste Woche Domain-2 fĂŒr Nextcloud Instanz haben möchte? Was ist da zu beachten?

MfG
nc-kay

Steht doch alles hier:

https://letsencrypt.org/de/docs/rate-limits/

Ich glaube kaum, dass dir da jemand mehr sagen kann.

1 Like

Eine gelöstes Problem:

A+

Rating

Running Nextcloud 21.0.0.18

Latest patch level

Major version still supported

Scanned at 2021-02-25 09:29:35

This topic was automatically closed after 6 days. New replies are no longer allowed.