Skip to content

Commit c510eb2

Browse files
committed
Fix Technitium v15+ certificate access and add --version
1 parent 629519f commit c510eb2

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ curl -fsSL https://raw.githubusercontent.com/luizbizzio/local-https/main/install
5656

5757
| Command | What it does |
5858
|---|---|
59+
| `local-https --version` | Prints the installed `local-https` version |
5960
| `sudo local-https --install` | Full setup (Root CA, server cert, PEM/PFX, permissions, auto-renew, optional Pi-hole deploy, Technitium TLS if detected) |
6061
| `sudo local-https --renew` | Renew if needed (near expiry window). If nothing to do, exits fast |
6162
| `sudo local-https --renew --force-renew` | Forces a new server certificate + rebuilds PFX + restarts detected services |
@@ -236,6 +237,7 @@ https://www.ssl.com/article/preparing-for-47-day-ssl-tls-certificates/
236237

237238
## 📝 Notes
238239

240+
- 🏷️ When reporting an issue, include the output of `local-https --version`.
239241
- 🧱 This is a **local CA**. It is for your own network and devices, not public HTTPS.
240242
- 🧪 If you are testing renew: use `sudo local-https --renew --force-renew` and confirm the new `notAfter` date with OpenSSL.
241243
- 🔧 Pi-hole Lighttpd mode may install `lighttpd-mod-openssl` via `apt-get`.

‎local-https.sh‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ vout() { [ "$VERBOSE" -eq 1 ] && out "$1" || true; }
4747
die() { printf '%b\n' "\033[31m[ERROR]\033[0m $1" >&2; exit 1; }
4848

4949
SCRIPT_CMD_NAME="local-https"
50+
VERSION="1.1.2"
5051
INSTALL_PATH="/usr/local/sbin/local-https"
5152

5253
SCRIPT_SOURCE_URL_DEFAULT="https://raw.githubusercontent.com/luizbizzio/local-https/main/local-https.sh"
@@ -694,6 +695,7 @@ remove_block() {
694695
print_help() {
695696
echo ""
696697
echo "Usage:"
698+
echo " $SCRIPT_CMD_NAME --version"
697699
echo " $SCRIPT_CMD_NAME --install [--domain <name>]"
698700
echo " $SCRIPT_CMD_NAME --renew [--force-renew] [--domain <name>]"
699701
echo " $SCRIPT_CMD_NAME --check"
@@ -727,7 +729,7 @@ banner() {
727729
esac
728730

729731
printf '%b\n' "\033[36m============================================================\033[0m"
730-
printf '%b\n' "\033[1m\033[36m local-https\033[0m \033[90m(${mode})\033[0m"
732+
printf '%b\n' "\033[1m\033[36m local-https v${VERSION}\033[0m \033[90m(${mode})\033[0m"
731733
printf '%b\n' "\033[36m============================================================\033[0m"
732734
echo ""
733735

@@ -2375,6 +2377,10 @@ parse_cli() {
23752377
print_help
23762378
exit 0
23772379
;;
2380+
--version|-V)
2381+
printf '%s\n' "$SCRIPT_CMD_NAME $VERSION"
2382+
exit 0
2383+
;;
23782384
--install)
23792385
shift
23802386
while [ "$#" -gt 0 ]; do

0 commit comments

Comments
 (0)