Skip to content

Docker container that extracts the TLS certificate and key from the Cosmos config file into separate files

Notifications You must be signed in to change notification settings

fuzmik/cosmos-cert-extractor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cosmos-cert-extractor

This is a python script periodically running (every 5 minutes) to extract the TLS certificate from the Cosmos config file. The use case I set this up for is in order to use the certificate in my Adguard Home instance.

How to use

Make sure your volume mounts are set up correctly:

  • The cosmos volume or path must be mapped to /input.
  • The adguard-config volume must be mapped to /output.

The cert.pem and key.pem file will be created and updated in /output/certs and can then be used in Adguard using these paths:

  • /opt/adguardhome/conf/certs/cert.pem
  • /opt/adguardhome/conf/certs/key.pem

About

Docker container that extracts the TLS certificate and key from the Cosmos config file into separate files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 53.3%
  • Python 46.7%