Coder Social home page Coder Social logo

loglux / asuswrt_ssl_updater Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11 KB

This repository contains a bash script for updating wildcard SSL certificates on Asus routers

Shell 100.00%
automation namecheap-api namecheap-domains shell-script ssl-certificate merlin-asuswrt router

asuswrt_ssl_updater's Introduction

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:

NAMECHEAP_API_KEY='<your-namecheap-api-key>'
NAMECHEAP_USERNAME='<your-namecheap-username>'
NAMECHEAP_SOURCEIP='<your-source-ip>'
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'

asuswrt_ssl_updater's People

Contributors

loglux avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.