samsausages Posted April 26, 2023 Share Posted April 26, 2023 (edited) 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, 2023 by samsausages 2 Quote Link to comment
samsausages Posted April 27, 2023 Author Share Posted April 27, 2023 @ljm42 gave some good pointers on how to improve this script. Expect an updated version when I get back in town, about 2 weeks! Quote Link to comment
pOpYRaid Posted April 6 Share Posted April 6 (edited) @samsausages thx a lot for this!!!! Any Updates on this script? Edited April 6 by pOpYRaid Quote Link to comment
samsausages Posted April 9 Author Share Posted April 9 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. Quote Link to comment
AlexMex Posted April 13 Share Posted April 13 @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. Quote Link to comment
Recommended Posts
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.