Skip to content

Tool for deploing TLS certificate over WEB interface to KSMG 2.0

License

Notifications You must be signed in to change notification settings

stakly/ksmg-deploy-cert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ksmg-deploy-cert

Tool for deploying TLS certificate over WEB interface to KSMG 2.0

usage

  1. Define variables inside ksmg-deploy-cert.sh script:
SERVER_ADDR='mxf.domain.ru'
USER='Administrator'
PASSWORD='password!'
# temporary password for PFX container
CERT_PASSWORD='123123'
DOMAIN='domain.ru'
# certbot working directory contains 'live' directory
LE_DIR='/etc/letsencrypt'
# temporary directory
TMP_DIR='/tmp'
  1. Run script to check it works:
root@host:[~/bin]#./ksmg-deploy-cert.sh
KSMG > generating certificate container "/tmp/domain.ru.pfx"
KSMG > obtaing XSRF token from "/tmp/cookie.txt"
KSMG > trying to auth and save cookie into "/tmp/cookie.txt"
KSMG > uploading certificate "/tmp/domain.ru.pfx"
KSMG > activating certificate with id 4
KSMG > success
  1. Add periodically startup to cron or run after successfully receiving new certificate.

About

Tool for deploing TLS certificate over WEB interface to KSMG 2.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages