Skip to content

GitHub Actions

Markdown · llms.txt

Downloads a release binary, verifies its checksum, and fails the job on the findings you pick:

- uses: dyokto/y509@v1
with:
target: example.com:443
fail-on: untrusted,mis-served,expiring
expiry-days: 30

To pin the action to a commit instead of the moving v1 tag:

- uses: dyokto/y509@ce93d2f247ad8906c5ba7ce4467c2d2cba58241a # v1.17.0

mis-served is the one other tools miss: a chain that verifies but breaks curl, Go and Java.

Input Default
target host, host:port, or a PEM/DER path in the workspace
version latest a release tag; pin it for a reproducible check
fail-on untrusted,mis-served any of untrusted, mis-served, expiring, revocation, conformance, policy, or none
expiry-days 30 threshold for expiring
starttls smtp, imap, ftp, ldap, mysql, postgres
servername SNI name, when it differs from the host dialled
roots PEM file of extra trust anchors, for an internal PKI
no-system-roots false trust only roots
policy fips or pqc, passed to --policy
check-crl false fetch and check CRLs, passed to --check-crl
summary true write a report to the job summary

revocation fails on a stapled OCSP response that is revoked, stale, dated in the future, unknown, badly signed or unreadable, and with check-crl on a certificate a CRL lists or a CRL that is stale, badly signed, out of scope or unreachable. No staple passes. conformance fails on a SHA-1 or MD5 signature, an RSA key under 2048 bits, a host name only in the common name, a served precertificate, a critical extension Go does not process, or too few SCTs for Chrome's CT policy. advisories never fail the step.

Outputs: trust-level, trusted, presentation-ok, days-until-expiry, problems, revocation-ok, conformance-ok, ct-policy, policy-ok, and report (path to the full JSON).

Findings not in fail-on still show up as warnings, so fail-on: none makes a monitor:

on:
schedule:
- cron: "0 6 * * *"
jobs:
certificates:
runs-on: ubuntu-latest
strategy:
matrix:
host: [www.example.com, api.example.com, smtp.example.com:587]
steps:
- uses: dyokto/y509@v1
with:
target: ${{ matrix.host }}
fail-on: untrusted,mis-served,expiring