You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_docs/ecosystem/certificates/lets_encrypt.markdown
+4-49Lines changed: 4 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -240,21 +240,7 @@ In cases where your ISP blocks port 80 you will need to change the port forward
240
240
241
241
Now SSH in to the device your Home Assistant is running on.
242
242
243
-
<pclass='note'>
244
-
If you're running the 'standard' setup on a Raspberry Pi the chances are you just logged in as the 'pi' user. If not, you may have logged in as the Home Assistant user. There are commands below that require the Home Assistant user to be on the `sudoers` list. If you are not using the 'standard' pi setup it is presumed you will know how to get your Home Assistant user on the `sudoers` list before continuing. If you are running the 'standard' pi setup, from your 'pi' user issue the following command (where `hass` is the Home Assistant user):
245
-
246
-
```
247
-
$ sudo adduser hass sudo
248
-
```
249
-
</p>
250
-
251
-
If you did not already log in as the user that currently runs Home Assistant, change to that user (usually `hass` or `homeassistant` - you may have used a command similar to this in the past):
252
-
253
-
```bash
254
-
$ sudo su -s /bin/bash hass
255
-
```
256
-
257
-
Make sure you are in the home directory for the HA user:
243
+
Make sure you are in the home directory for your user:
258
244
259
245
```bash
260
246
$ cd
@@ -288,11 +274,11 @@ This should show a folder named exactly after your DuckDNS URL.
288
274
Our Home Assistant user needs access to files within the letsencrypt folder, so issue the following commands to change the permissions.
289
275
290
276
```bash
291
-
$ sudo chmod 755 /etc/letsencrypt/live/
292
-
$ sudo chmod 755 /etc/letsencrypt/archive/
277
+
$ sudo chmod a+x /etc/letsencrypt/live/
278
+
$ sudo chmod a+x /etc/letsencrypt/archive/
293
279
```
294
280
295
-
Did all of that go without a hitch? Wahoo! Your Let's Encrypt certificate is now ready to be used with Home Assistant. Move to step 5 to put it all together
281
+
Did all of that go without a hitch? Wahoo! Your Let's Encrypt certificate is now ready to be used with Home Assistant. Move to step 5 to put it all together.
296
282
297
283
### {% linkable_title 5 - Check the incoming connection %}
298
284
@@ -442,12 +428,6 @@ Your certificate can be renewed as a 'cron job' - cron jobs are background tasks
442
428
To set a cron job to run the script at regular intervals:
443
429
444
430
* SSH in to your device running Home Assistant.
445
-
* Change to your Home Assistant user (command similar to):
446
-
447
-
```bash
448
-
$ sudo su -s /bin/bash hass
449
-
```
450
-
451
431
* Open the crontab:
452
432
453
433
```bash
@@ -474,37 +454,12 @@ $ crontab -e
474
454
475
455
476
456
#### Option 2:
477
-
You can set an automation in Home Assistant to run the certbot renewal script.
478
-
479
-
Add the following sections to your configuration.yaml if you are a TWO-RULE person
0 commit comments