Skip to content
/ homelab-utility-belt Public
  • Notifications You must be signed in to change notification settings
  • Fork 6
  • Star 13

A set of utilities to help managing a homelab

License

13 stars 6 forks Branches Tags Activity
Star
Notifications You must be signed in to change notification settings

thiagocrepaldi/homelab-utility-belt

Branches Tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

13 Commits
supermicro/ipmi-updater
supermicro/ipmi-updater
synology
synology
xmltv
xmltv
.gitignore
.gitignore
LICENSE
LICENSE
README.md
README.md

Repository files navigation

Homelab utility belt

A set of utilities to help managing a homelab

Content

  • Homelab utility belt
  • Content
    • Supermicro
      • IPMI certificate updater
    • Synology
      • IPMI certificate updater on DSM
      • Copy LetsEncrypt SSL certificate from pfSense into Synology DSM
      • Install LetsEncrypt SSL certificate from pfSense into Synology DSM

Supermicro

IPMI certificate updater

Requirements: Python 2.7+ or Python 3 with modules listed at requirements.txt

How to get started:

$ pip install -r supermicro/ipmi-updater/requirements.txt
$ python supermicro/ipmi-updater/ipmi-updater.py --help

usage: ipmi-updater.py [-h] --ipmi-url IPMI_URL --key-file KEY_FILE --cert-file CERT_FILE --username USERNAME --password PASSWORD [--no-reboot] [--log-level {0,1,2}]

Update Supermicro IPMI SSL certificate

optional arguments:
  -h, --help            show this help message and exit
  --ipmi-url IPMI_URL   Supermicro IPMI 2.0 URL
  --key-file KEY_FILE   X.509 Private key filename
  --cert-file CERT_FILE
                        X.509 Certificate filename
  --username USERNAME   IPMI username with admin access
  --password PASSWORD   IPMI user password
  --no-reboot           The default is to reboot the IPMI after upload for the change to take effect.
  --log-level {0,1,2}   Log level (0: quiet, 1: info, 2: debug)

An example usage would be similar to:

$ python supermicro/ipmi-updater/ipmi-updater.py --ipmi-url https://mysupermicrohostname --username USERNAME --password PASSWORD --key-file /path/to/private_key.pem --cert-file /path/to/cert_file.cert --log-level=1

And the output would be:

********************************************************************************************************************************
Authenticating on Supermicro IPMI!
********************************************************************************************************************************
Login succeeded.

********************************************************************************************************************************
Fetching current IPMI certificate!
********************************************************************************************************************************
There exists a certificate, which is valid until: May 14 21:58:04 2021

********************************************************************************************************************************
Uploading new IPMI certificate!
********************************************************************************************************************************
New IPMI certificate was uploaded.

********************************************************************************************************************************
Checking new IPMI certificate was properly uploaded!
********************************************************************************************************************************
New IPMI certificate is valid.

********************************************************************************************************************************
Fetching new IPMI certificate!
********************************************************************************************************************************
After upload, there exists a certificate, which is valid until: May 14 21:58:04 2021

********************************************************************************************************************************
Rebooting IPMI to apply changes!
********************************************************************************************************************************

********************************************************************************************************************************
All done!
********************************************************************************************************************************

Synology

IPMI certificate updater on DSM

This is pretty much the same script for IPMI certificate updater but wrapped on a Almquist shell so that it can be automated from a Synology NAS.

How to get started:

bash supermicro-ipmi-updater.sh -p PYTHON -i INSTALL_DIR -c CERT -k KEY -a USERNAME -s SECRET -u URL -v VERBOSE

# Arguments:
#  -p PYTHON             Python binary name, such as 'python2' or 'python3'
#  -i INSTALL_DIR        Temporary dir to download IPMI updater scripts
#  -c CERT               Filename for the new certificate file
#  -k KEY                Filename for the private key
#  -a USERNAME           Username with admin access
#  -s SECRET             Password for the username
#  -u URL                IPMI URL, including http/https
#  -v VERBOSE            Log level (0: quiet, 1: info, 2: debug)

Copy LetsEncrypt SSL certificate from pfSense into Synology DSM

This scripts copy the specified LetsEncrypt certificate issue by your pfSense into a share and then install it on your Synology DSM

How to get started:

bash install_letsencrypt_cert_from_pfsense.sh -s LETSENCRYPT_SHARE -n CERTIFICATE_NAME -p PFSENSE_SSH_PORT -u PFSENSE_USERNAME -h PFSENSE_HOSTNAME

# Arguments:
#  -s LETSENCRYPT_SHARE    Full share path to download the LetsEncrypt certificates into (e.g. /volume1/LetsEncrypt)
#  -n CERTIFICATE_NAME     Let's Encrypt certificate name as displayed on pfSense UI (e.g. SynologySSL)
#  -p PFSENSE_SSH_PORT     SSH port for the pfSense (e.g. -p 22)
#  -u PFSENSE_USERNAME     Username (with proper SSH keys) for the pfSense - cannot be 'admin' (-u synouser)
#  -h PFSENSE_HOSTNAME     pfSense hostame (e.g. mypfsense.lan.example.com)

Install LetsEncrypt SSL certificate from pfSense into Synology DSM

This scripts installs the specified LetsEncrypt certificate issue by your pfSense from a local share into your Synology DSM

How to get started:

bash install_letsencrypt_cert_from_pfsense.sh -s LETSENCRYPT_SHARE -n CERTIFICATE_NAME

# Arguments:
#  -s LETSENCRYPT_SHARE    Full share path to download the LetsEncrypt certificates into (e.g. /volume1/LetsEncrypt)
#  -n CERTIFICATE_NAME     Let's Encrypt certificate name as displayed on pfSense UI (e.g. SynologySSL)

About

A set of utilities to help managing a homelab

Resources

Readme

License

Activity

Stars

13 stars

Watchers

2 watching

Forks

6 forks
Report repository

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.9%
  • Shell 16.1%

Footer

© 2024 GitHub, Inc.

PHP网站源码沙井百度网站优化木棉湾模板推广同乐网站优化按天收费宝安设计公司网站西乡网站改版坪山模板推广大芬百度网站优化排名爱联百度网站优化龙岗企业网站设计龙华seo网站优化龙华网站制作南澳网站推广工具观澜网站搭建西乡网络广告推广龙岗网站搭建吉祥企业网站制作同乐网站搭建南山品牌网站设计大运品牌网站设计福田网站推广系统荷坳外贸网站设计横岗网站优化按天计费横岗营销网站坪地百度竞价沙井关键词按天扣费南澳营销型网站建设观澜SEO按效果付费坪地网页制作西乡标王深圳seo排名歼20紧急升空逼退外机英媒称团队夜以继日筹划王妃复出草木蔓发 春山在望成都发生巨响 当地回应60岁老人炒菠菜未焯水致肾病恶化男子涉嫌走私被判11年却一天牢没坐劳斯莱斯右转逼停直行车网传落水者说“没让你救”系谣言广东通报13岁男孩性侵女童不予立案贵州小伙回应在美国卖三蹦子火了淀粉肠小王子日销售额涨超10倍有个姐真把千机伞做出来了近3万元金手镯仅含足金十克呼北高速交通事故已致14人死亡杨洋拄拐现身医院国产伟哥去年销售近13亿男子给前妻转账 现任妻子起诉要回新基金只募集到26元还是员工自购男孩疑遭霸凌 家长讨说法被踢出群充个话费竟沦为间接洗钱工具新的一天从800个哈欠开始单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#中国投资客涌入日本东京买房两大学生合买彩票中奖一人不认账新加坡主帅:唯一目标击败中国队月嫂回应掌掴婴儿是在赶虫子19岁小伙救下5人后溺亡 多方发声清明节放假3天调休1天张家界的山上“长”满了韩国人?开封王婆为何火了主播靠辱骂母亲走红被批捕封号代拍被何赛飞拿着魔杖追着打阿根廷将发行1万与2万面值的纸币库克现身上海为江西彩礼“减负”的“试婚人”因自嘲式简历走红的教授更新简介殡仪馆花卉高于市场价3倍还重复用网友称在豆瓣酱里吃出老鼠头315晚会后胖东来又人满为患了网友建议重庆地铁不准乘客携带菜筐特朗普谈“凯特王妃P图照”罗斯否认插足凯特王妃婚姻青海通报栏杆断裂小学生跌落住进ICU恒大被罚41.75亿到底怎么缴湖南一县政协主席疑涉刑案被控制茶百道就改标签日期致歉王树国3次鞠躬告别西交大师生张立群任西安交通大学校长杨倩无缘巴黎奥运

PHP网站源码 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化