Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script - Load & install user-provided SSL certificate, Reload webserver

Featured Replies

I made two scripts that handle installing custom SSL certificates for Unraid.

It is setup to work with pfsense and ACME certificates

One script retrieves the certs to your local server from pfsense, using the ACME plugin.
The other script copies them over and restarts the webserver.

 

Install using User-Scripts and set a cron schedule, ideally for 60 days.

The two scripts could be combined, but I separated them so people who don't use pfsense can use just the one script.

https://github.com/samssausages/unraid-install-sslcert/tree/main

Edited by samsausages

  • samsausages changed the title to Script - Load & install user-provided SSL certificate, Reload webserver
  • Author

@ljm42 gave some good pointers on how to improve this script.  Expect an updated version when I get back in town, about 2 weeks!

  • 11 months later...

@samsausages thx a lot for this!!!! Any Updates on this script?

Edited by pOpYRaid

  • Author
On 4/6/2024 at 6:41 AM, pOpYRaid said:

@samsausages thx a lot for this!!!! Any Updates on this script?

The current version has been working great for me.  If there is something you're missing let me know.

@samsausages thanks for those scripts. I got to make small changes to get it work

 

pfsense script refers to /mnt/certs

# Array of local directories to save files to
LOCAL_DIRS=(
  "/mnt/certs"
  # Add more directories here as needed
)

 

and unraid one to

# Define the source directory where the certificates are stored
source_dir="/mnt/user/certs"

 

In pfSense 2.7 rsync is not installed so I change

 rsync -avz -e ssh "$SSH_USER@$SSH_HOST:$REMOTE_DIR/" "$dir"

by

scp $SSH_USER@$SSH_HOST:$REMOTE_DIR/towername* $dir

 

The bad point is that my user needs admin rights in pfSense to execute scp command.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.