/ubuntu-security:tls-cert-checkfrom ubuntu-security
Check TLS certificates on an Ubuntu server — Let's Encrypt / certbot certificates and their renewal timer, certificate files referenced by nginx, Apache, Postfix and other services, what a live endpoint actually serves (expiry, chain, hostname match), and certificates expiring within 30 days — and diagnose failed renewals. Use when the user asks "when do my certificates expire", "is certbot renewing", "check the SSL cert on <host>", "certificate expired / renewal failed", or "which certs are on this server".
Ships in ubuntu-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read-only, except certbot renew when the user asks to fix a renewal.
command -v certbot && sudo certbot certificates # names, domains, expiry, paths
systemctl list-timers --no-pager | grep -E 'certbot|snap.certbot'
sudo journalctl -u certbot -u snap.certbot.renew --since -14d --no-pager | tail -30
sudo tail -40 /var/log/letsencrypt/letsencrypt.log
Ubuntu has two installs: the snap (snap.certbot.renew.timer, recommended upstream)
and the apt package (certbot.timer). Both renew certificates within 30 days of
expiry, twice a day. If both are installed, report it (they share /etc/letsencrypt;
harmless but confusing). Dry-run a renewal to prove it works without spending the
rate limit:
sudo certbot renew --dry-run
Common failures: port 80 blocked (HTTP-01 needs it from the internet: check ufw and
the cloud firewall), DNS no longer points here, the webroot path changed, a DNS
plugin's API credential expired, or a --pre-hook/--post-hook failing. Renewal
config per cert: /etc/letsencrypt/renewal/<name>.conf.
for f in /etc/letsencrypt/live/*/cert.pem; do
printf '%s ' "$f"; sudo openssl x509 -in "$f" -noout -enddate -subject | paste -sd' '; done 2>/dev/null
sudo grep -rhoE '(ssl_certificate|SSLCertificateFile|smtpd_tls_cert_file|ssl_cert)\s*=?\s*[^;[:space:]]+' \
/etc/nginx /etc/apache2 /etc/postfix /etc/dovecot 2>/dev/null | awk '{print $NF}' | tr -d '<' | sort -u
For each file, sudo openssl x509 -in <file> -noout -subject -issuer -enddate -ext subjectAltName.
openssl x509 -checkend 2592000 -noout -in <file> exits non-zero if it expires within
30 days.
What the server presents can differ from the files (service not reloaded after renewal, wrong vhost, a proxy in front):
echo | openssl s_client -connect <host>:443 -servername <host> 2>/dev/null \
| openssl x509 -noout -subject -issuer -enddate -ext subjectAltName
echo | openssl s_client -connect <host>:443 -servername <host> -verify_return_error 2>&1 | grep -E 'Verify return code|verify error'
Other ports: :465/:993 (direct TLS), -starttls smtp -connect <host>:587,
-starttls imap. If the file on disk is newer than what the endpoint serves, the
service needs a reload (systemctl reload nginx); certbot does this only if a deploy
hook is configured (/etc/letsencrypt/renewal-hooks/deploy/).
If the host is behind a CDN or tunnel (Cloudflare, etc.), the public certificate is the CDN's; check the origin certificate separately by connecting to the origin address.
Table: certificate (name / domains), source (certbot, file, endpoint), expires (date and days left), issuer, auto-renew yes/no. Flag anything under 30 days, any expired, hostname mismatches, and endpoint ≠ file.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
18 skills in this plugin
/av-installInstall and initialise malware and rootkit scanning on Ubuntu — the core set (ClamAV engine + clamd daemon + freshclam updater, ClamTk GUI on desktops, rkhunter) and, on request, the advanced layer (Lynis hardening audit, chkrootkit, AIDE file-integrity baseline, debsecan). Detects what is already installed, picks a reports folder, runs the first definitions update and baselines. Use when the user says "install antivirus", "set up clamav", "install rkhunter / lynis / aide / chkrootkit", "set up malware scanning", or when malware-scan finds no scanners installed./av-update-definitionsRefresh signature databases and data for every installed scanner on Ubuntu — freshclam (ClamAV), rkhunter --update, Lynis version check, debsecan CVE list — and report one status line per tool, without re-baselining rkhunter or AIDE. Also explains stale ClamAV signatures (freshclam service down, mirror rate-limiting). Use when the user says "update antivirus definitions", "refresh signatures", "update clamav", "is clamav up to date", or before a scan when signatures are old./complementary-pluginsList and install plugins that complement ubuntu-security: hardware-auth-keys, security-auditor, ubuntu-admin. Use on "related plugins".ubuntu-security@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin ubuntu-security