Forum Discussion
r23_78178
Jan 13, 2012Nimbostratus
iRule idea check certificate
Hi,
I am occasionally tasked with checking ssl certificates on my customer's F5 LTM.
This is a manual task and it takes time and adding beaureaucracy means updating in the last minute.
I have an idea. What if I create an IRule to check certificates using something like :
openssl x509 -in /config/ssl/ssl.crt/default.crt -noout -enddate |cut -c10-40
and then send a notification that a certificate will expire in the next 2-3 months.
I am a beginner with all iRules. Is this feasible/possible ? How should I start ?
- hooleylistCirrostratusHi r23,
- nitassEmployeei think it could be possible. for example, irule may inject message to log which can trigger alertd to run script and send email notification.
- r23_78178NimbostratusBut "checkcert" only warns of 30 days (1 month) , I need 2-3 months.
- nitassEmployeeCan it be configured ?the number of day is not configurable. is external script like the one below useful?
- r23_78178NimbostratusBTW - that example from George Watkins uses Ruby. Not sure if I would get client approval for that.But I will take a look and try to ask as I go along.If you know of any other examples please let me know.
- r23_78178Nimbostratus@nitass
- nitassEmployeei do not have exact example but hope these might be useful.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects