April 26, 20233 yr 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 April 26, 20233 yr by samsausages
April 27, 20233 yr 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!
April 6, 20242 yr @samsausages thx a lot for this!!!! Any Updates on this script? Edited April 6, 20242 yr by pOpYRaid
April 9, 20242 yr 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.
April 13, 20242 yr @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.