banshee est en développement actif : les collecteurs vont encore changer, et une version que vous publiez demandera sans doute des ajustements. Pour un usage stable, attendez la version 1.0.0.

Examples

banshee/examples-collection/examples/protocols/

tls-inspect

Example: tls.inspect, the certificate a port presents; the days before it expires.

  • example
  • protocol
  • tls
  • certificate

par banshee1 installation1 version

v1Dernière

Publiée le 27 octobre 2026. First version in this collection.

Keen 1.0.0 · 12 lignes
// tls.inspect: a TLS handshake that reads the certificate a port presents, and judges it without ever
// refusing it. It joins the address of the host.
need('host:address');

output('days-left', 'number', array('label' => 'Days before expiry', 'unit' => 'd'));

watch.below('expiring', 'Certificate expiring', 'days-left', array('warning' => 30, 'critical' => 7));

$found = tls.inspect(443);
// certificates: the chain as the server presents it, its own certificate first.
$leaf = $found['certificates'][0];
value('days-left', number.round($leaf['days_left'], 1));