/android-cert-pinning:extract-cert-pinsfrom android-cert-pinning
Extract, generate, or rotate SSL/TLS certificate SPKI pins (the "sha256/..." values used for certificate pinning) for a hostname. Given a host, prints every certificate in the served chain — leaf, intermediate(s), and (best effort) root — each with its sha256 SPKI pin, expiry date and days remaining, subject CN, issuing CA, signature algorithm, and key type. Use when asked to get/refresh certificate pins, check a cert's expiry or CA, or update pinning config such as AppNetworkConfig.kt.
Ships in android-cert-pinning. 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.
Read when SKILL.md points to them; scripts run unread.
Compute the certificate pins and metadata for a live TLS host. This skill is general-purpose: the hostname is the only input, and it reads no project files.
Get the hostname (and optional port) from the user's request. If none was given, ask for it — do not read any project source to guess it.
From the skill directory, run:
bash scripts/extract-pins.sh <hostname> [port]
Port defaults to 443.
Relay the script's output. For each certificate it prints the role
(leaf / intermediate / root), the sha256/... pin, validity window + days
left, subject, issuer (CA), and key/signature algorithm.
The script opens a TLS connection with openssl s_client -showcerts, splits the
served chain into individual certs, and for each computes the pin with the
canonical SubjectPublicKeyInfo pipeline:
openssl x509 -pubkey -noout \
| openssl pkey -pubin -outform der \
| openssl dgst -sha256 -binary \
| openssl enc -base64
Servers normally do not send the root, so the script resolves it best-effort from the local trust store (issuer-hash lookup, then CA-bundle subject match). If the root can't be resolved locally it still prints the root's subject name and a note explaining where to obtain it.
AppNetworkConfig.kt or any other file;
leave pasting the pins to the user.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ictech-projects/android-claude-skills --plugin android-cert-pinning