extract_cert_serial_and_spki_pins
Extract uppercase Hex certificate serial numbers, SHA-256 thumbprints, and Base64 SHA-256 SPKI pins from X.509 PEM certificates or chains for WeChat Pay v3 and mTLS pinning.
Instructions
Extracts uppercase contiguous Hex serial numbers (for WeChat Pay v3 serial_no and mTLS gateways), SHA-256 certificate thumbprints, and Base64 SHA-256 SPKI pins.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "extract_cert_serial_and_spki_pins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| certPem | No | X.509 PEM certificate or bundle from which serial numbers and SPKI pins are extracted. | |
| certPath | No | Optional local file path to the X.509 certificate when certPem is omitted. | |
| includeChain | No | When true, returns serial numbers and SPKI pins for every certificate in the ordered chain. |