Skip to content

xawen/Docker-ns-letsencrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker-ns-letsencrypt

A Docker image to run Ryan Butler's ns-letsencrypt script.

Discussion

https://itrandomness.com/2019/09/lets-encrypt-and-netscaler-a-docker-approach/

Starting a container

docker run --name ns-letsencrypt \
        --mount type=bind,source=<path to data>,target=/root \
        --mount type=bind,source=/etc/localtime,destination=/etc/localtime,readonly \
        xawen/ns-letsencrypt

Configuration

Once the container is running, get the container ID

$ docker ps

Then, open a shell into it:

$ docker exec -it <contaner ID> bash

At that point, follow the diretions on Ryan's page. Note that following steps are unnecessary as they're already in the image:

  • Configure Linux Server: apt-get install python git python-pip curl
  • Configure Linux Server: pip install requests
  • Configure Linux Server: git clone --recursive https://github.com/ryancbutler/ns-letsencrypt
  • Automate Renewal: All steps

The container will create a cron job that will run once per week (3am on Saturday). The ns_letsencrypt script will update the LE certificate once it's within 30 days of expiration.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published