https://github.com/loglux/asuswrt_ssl_updater
This repository contains a bash script for updating wildcard SSL certificates on Asus routers
https://github.com/loglux/asuswrt_ssl_updater
automation merlin-asuswrt namecheap-api namecheap-domains router shell-script ssl-certificate
Last synced: 3 months ago
JSON representation
This repository contains a bash script for updating wildcard SSL certificates on Asus routers
- Host: GitHub
- URL: https://github.com/loglux/asuswrt_ssl_updater
- Owner: loglux
- Created: 2023-05-26T10:17:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-26T12:41:22.000Z (about 2 years ago)
- Last Synced: 2025-01-07T19:39:30.148Z (5 months ago)
- Topics: automation, merlin-asuswrt, namecheap-api, namecheap-domains, router, shell-script, ssl-certificate
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Asus Router SSL Updater
This repository contains a Bash script for automatically updating wildcard SSL certificates on Asus routers. The script uses the `acme.sh` script and works with the NGINX service. This approach is particularly useful if you're using your Asus router for domain forwarding.The script is designed to work with the Advanced DNS service from Namecheap.com.
## Prerequisites
### Entware
To start, you need to implement Optware on your Asus router. Entware is a software repository that offers various software programs that can be installed on your router.
Please refer to the following guide for implementing Entware: [https://github.com/RMerl/asuswrt-merlin.ng/wiki/Entware]
### acme.sh
After implementing Optware, you need to install the `acme.sh` script. `acme.sh` is a simple, powerful, and user-friendly shell script for generating and managing certificates from Let's Encrypt.
Please refer to the following guide for installing `acme.sh`: [https://github.com/acmesh-official/acme.sh]
### Namecheap Account Configuration
The script requires that you set up an `account.conf` file which will be stored in `/tmp/home/root/.acme.sh/` directory on your router. This file should contain your Namecheap API key, username, and source IP address, as well as the user path for the router. An example `account.conf` file is provided in this repository. Replace the placeholders with your actual details:
```bash
NAMECHEAP_API_KEY=''
NAMECHEAP_USERNAME=''
NAMECHEAP_SOURCEIP=''
USER_PATH='/opt/bin:/opt/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin'