code optimization
- add "extract_x509" boolean (default : false) to run the extraction in
the hook schema
- use a function to extract certificates