Verify TLS certificate and hostname
21-https-verify-secure.yaml
HTTP(S)
What this example does
This example demonstrates verify tls certificate and hostname.
Checks and behavior
- Sends an GET request to https://api.example.invalid/health.
- Checks allowed/denied HTTP status codes.
- TLS settings cover certificate trust.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
# Copyright (c) 2026 mati peterson. Maintainer: mati peterson <ipsonic@mailbox.org>. Project: https://ipsonic.com/probe/. Disclaimer: Provided AS IS, without warranty of any kind. Use at your own risk; validate checks and configurations before production use.
name: Verify TLS certificate and hostname
url: https://api.example.invalid/health
request:
method: GET
tls:
verify: true
tests:
status:
allow: [200]