Jwk Convert
jwk_convertConvert public keys between PEM, JWK and OpenSSH formats and compute their identifiers — what an agent needs to publish a JWKS, configure an OIDC / JWT verifier or pin a key. Accepts SPKI or PKCS#1 PEM, X.509 certificates (PEM or base64 DER), OpenSSH public keys, a JWK or a whole JWKS. Returns the public JWK (RSA, EC P-256 / P-384 / P-521 / secp256k1, OKP Ed25519 / Ed448 / X25519 / X448), RFC 7638 thumbprint (and RFC 9278 thumbprint URI), SPKI PEM, OpenSSH line with its SHA256 fingerprint, the pin-sha256 SPKI hash, x5t / x5t#S256 for certificates, suggested JWS algorithms and weak-key warnings. Public keys only: private keys are refused, never processed. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/jwk-convert
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>"
},
"name": "jwk_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alg | No | JWS / JWE algorithm to set on the JWK, e.g. RS256, ES256, EdDSA | |
| key | Yes | PEM (PUBLIC KEY, RSA PUBLIC KEY or CERTIFICATE), base64 DER, an OpenSSH public key line, or a JWK / JWKS (as an object or JSON string) | |
| kid | No | Key ID to set (default: keep the JWK kid, else the RFC 7638 thumbprint) | |
| use | No | Public key use to set on the JWK |