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
#custom template - certificate expiry
1 messages · Page 1 of 1 (latest)
you can write logic using flow now.
https://docs.projectdiscovery.io/templates/protocols/flow
The flow section even uses an example of SSL!