#custom template - certificate expiry

1 messages · Page 1 of 1 (latest)

stark mortar
#

I am new to nuclei. The default template of certificate expiry reports once certificate is expired. I want to customize template & report X days before expiry so that certificate can be renewed on time. I went through templates documentation:https://docs.projectdiscovery.io/templates/introduction but didn't find SSL protocol in the docs. I then went through https://github.com/projectdiscovery/nuclei-templates/blob/main/ssl/expired-ssl.yaml to write my own. I could read not_after from request using JSON extractor but unable to implement "report before X days" logic via matcher DSL. Any lead would be much appreciated

ProjectDiscovery Documentation

YAML based universal language for describing exploitable vulnerabilties

GitHub

Community curated list of templates for the nuclei engine to find security vulnerabilities. - projectdiscovery/nuclei-templates

wild python