Examples
banshee/examples-collection/examples/protocols/
tls-try
Example: tls.try, one version offered; does a server still accept TLS 1.0.
par banshee1 installation1 version
Publiée le 27 octobre 2026. First version in this collection.
// tls.try: a handshake that offers one version of TLS only. A server that refuses it gives an answer,
// accepted false, not a failure.
// The collector checks whether a server still accepts TLS 1.0.
need('host:address');
output('tls10', 'text', array('label' => 'TLS 1.0 accepted'));
watch.state('old-tls', 'Old protocol accepted', 'tls10', array('warning' => array('yes')));
$try = tls.try(443, '1.0');
$accepted = 'no';
if ($try['accepted']) {
$accepted = 'yes';
}
value('tls10', $accepted);