/jpm-payments-skills:jpm-csrfrom jpm-payments-skills
Generates CSR + private key pairs for JPM Payments API onboarding. Walks through environment selection, subject fields, and output directory with JPM-specific CN uniqueness enforcement.
Ships in jpm-payments-skills. 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.
Generate one or two CSR + private-key pairs (CAT, PROD, or both) for JPM Payments API onboarding. Follow the steps in order. Use AskUserQuestion for every multiple-choice question.
Run openssl version via Bash. If the command is not found, tell the user:
openssl is not on PATH. Install it and re-run this skill:
- Windows: use Git Bash (which bundles openssl) or install from https://slproweb.com/products/Win32OpenSSL.html
- macOS:
brew install openssl- Linux:
apt install openssl(or your distro's equivalent)
Then exit.
Ask:
JPM requires a separate CSR per environment with a different CN. If the user picks "Both", you'll run the generation twice with different CNs but otherwise identical subject fields.
For the first (or only) environment, prompt the user (free text), one at a time, for the six standard X.509 subject fields:
US)New York)New York)Acme Corp)Payments)acme-corp-cat)Validate before generating:
C must match ^[A-Za-z]{2}$. If not, re-prompt. Uppercase it before use." character.If the user chose "Both": after generating CAT, re-prompt for PROD using CAT's C/ST/L/O/OU as suggested defaults (the user can accept or change them) and require a new CN that differs from CAT's. If the user enters the same CN, re-prompt with a reminder that JPM requires distinct CNs.
Ask for an output directory (free text). Suggest defaults:
./jpm-csr/<env>/ (e.g. ./jpm-csr/cat/)./jpm-csr/cat/ and ./jpm-csr/prod/Validate the directory before using it — it is interpolated into shell commands in Step 5. Apply the same rules as the subject fields in Step 3, plus path-specific ones:
", ', `, $, ;, &, |, <, >, \, a newline, or a
tab. These break out of the quoting in Step 5 and execute arbitrary commands.- (it would be parsed as an openssl/mkdir flag).The directory is created in Step 5 if it doesn't exist.
Run these commands via Bash, once per environment. Substitute the collected values; uppercase C first.
5a. Create the output directory and an OpenSSL config file. Use a config file rather than -subj so values containing /, , or other special characters are handled safely.
mkdir -p "<out-dir>"
cat > "<out-dir>/csr.cnf" <<'EOF'
[req]
distinguished_name = dn
prompt = no
[dn]
C = <C>
ST = <ST>
L = <L>
O = <O>
OU = <OU>
CN = <CN>
EOF
Note: the <<'EOF' quoting prevents shell expansion inside the subject values. Write the literal values into the file — do not use shell variables.
5b. Generate the key and CSR.
openssl req -new \
-newkey rsa:2048 \
-nodes \
-keyout "<out-dir>/privateKey.key" \
-out "<out-dir>/certificateRequest.pem" \
-config "<out-dir>/csr.cnf"
5c. Lock down the key and remove the config file.
chmod 600 "<out-dir>/privateKey.key" 2>/dev/null || true
rm -f "<out-dir>/csr.cnf"
5d. Verify the subject is what the user asked for.
openssl req -in "<out-dir>/certificateRequest.pem" -noout -subject
Show that subject line to the user. If it doesn't match the collected fields, delete both output files and report the mismatch.
If any command fails, delete privateKey.key and certificateRequest.pem if they were created, show the OpenSSL error to the user, and exit. Do not retry automatically.
After successful generation:
.gitignore in the project root. If a line equal to **/privateKey.key is not present, append it (with a leading comment line # JPM private keys). If .gitignore doesn't exist, create one with those two lines.<csr path><key path>C=<C>, ST=<ST>, L=<L>, O=<O>, OU=<OU>, CN=<CN>Tell the user:
Send the
certificateRequest.pemfile to your Relationship Manager. They will use it to create your Client ID and return a.pemcertificate plus yourclientId. Onboarding typically takes 24–48 hours.Keep
privateKey.keysafe. You'll reference it later in your OAuth config along with the.pemyour Relationship Manager sends back. Once you have all three (clientId, .pem, privateKey.key), run thejpm-integrations-get-startedskill to validate them.
If the user generated for both environments, remind them the two CSRs go in separate IDAHO requests (CAT and PROD).
.gitignore line for **/privateKey.key. The temporary csr.cnf must be deleted in Step 5c.mkdir, the here-doc path, three openssl flags, and rm -f.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
csr-generation, jpm-payments, certificate-signing, onboarding
5 skills in this plugin
/jpm-integrations-get-startedTriage and credential intake for merchants starting with J.P. Morgan Payments APIs. Use this skill when the user wants to migrate from another payment provider to JPM or start a new JPM integration from scratch. Sets up a .env file (generated fresh or updated in place) with the clientId, certificate path, and private key path that downstream skills will read at runtime. Does not persist credential contents./jpm-merchant-integrationsImplement J.P. Morgan Payments API integrations in a merchant project once OAuth authentication is in place. Use this skill after a merchant has completed JPM onboarding and wired up authentication (typically right after `jpm-oauth`) and is ready to integrate one of the supported APIs — Checkout, Online Payments, Tokenization, 3-D Secure, Account Updater, or Reporting. For inbound webhook handling, use the companion `jpm-notifications` skill instead. Recommends implementing one API at a time, reusing the credentials and auth module already wired into the project./jpm-notificationsImplement and manage J.P. Morgan Payments Notifications (webhook) integrations in a merchant project once OAuth authentication is in place. Use this skill after jpm-oauth when the merchant wants to discover notification types, build a webhook receiver, create or inspect notification subscriptions, configure webhook security preferences, test delivery, retrieve notifications, or verify webhook signatures (X-Signature). Reuses the auth module generated by jpm-oauth — it does not implement its own OAuth. Delivery is WEBHOOK-first. Triggers include notifications, webhook, subscribe to notifications, notification types, callback URL, X-Signature, public keys, verify signature, payout/dispute/payment notifications, retry, dead letter./jpm-oauthImplement J.P. Morgan Payments OAuth authentication (JWT signing + IDAnywhere token exchange) in a merchant project. Use this skill when a merchant has their clientId, certificate, private key, and SHA-1 thumbprint and wants to generate the auth code in their codebase — typically right after running jpm-integrations-get-started. Produces a language-specific auth module with built-in token caching that follows JPM guidance against regenerating tokens per request. Supports Node/TypeScript, Python, and Java idiomatically; for other languages, translates from the canonical algorithm. Asks for target environment (CAT or PROD) and JWT TTL; the resource_id is read from the merchant's `.env` at runtime rather than collected interactively.npx claudepluginhub jpmorgan-payments/ai --plugin jpm-payments-skillsOther plugins' skills for the same job