Alipay Open Platform Keys (RSA2) for Openclaw

A specialized toolset for generating, managing, and verifying Alipay Open Platform RSA2 keys and certificates using OpenSSL.

zhangke091
v1.0.0
Apr 11, 2026
1
712
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install alipay-open-platform-keys

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install alipay-open-platform-keys using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Alipay Open Platform Keys (RSA2)?

The alipay-open-platform-keys skill provides a robust framework for handling the cryptographic requirements of the Alipay Open Platform. It streamlines the lifecycle of RSA2 keys, from initial generation via local scripts to final verification of public-private key pairs. By utilizing Openclaw Skills, developers can bypass the need for desktop-based key tools, ensuring a more integrated and secure development environment.

This skill supports both the standard Public Key mode and the more advanced Certificate mode (CSR). It emphasizes security by keeping private keys local and out of version control, while providing clear pathways for uploading CSRs and configuring environment variables for various SDKs.

Alipay Open Platform Keys (RSA2) Use Cases

  • Generating new RSA2 private and public keys for Alipay application integration.
  • Creating Certificate Signing Requests (CSR) for Alipay's Certificate mode.
  • Verifying if a local private key matches a corresponding public key or certificate.
  • Troubleshooting signature verification failures and mismatching credential sets.

How Alipay Open Platform Keys (RSA2) Works

  1. The user executes the local shell script to generate a new RSA2 key pair or a CSR file.
  2. The generated public key or CSR is manually uploaded to the Alipay Open Platform console.
  3. The platform provides a platform public key or certificate in return.
  4. Developers configure their local environment or SDK with the local private key and the platform-provided credentials.
  5. The verify script is used locally to ensure all cryptographic components are correctly matched before deployment.

Alipay Open Platform Keys (RSA2) Setup

Ensure that openssl is installed on your system. Navigate to the skill directory to access the scripts.

# Generate keys in Public Key mode
bash skills/alipay-open-platform-keys/scripts/generate_alipay_rsa2_keys.sh

# Generate keys in Certificate mode (CSR)
bash skills/alipay-open-platform-keys/scripts/generate_alipay_rsa2_keys.sh --cert --subj "/CN=YourAppName"

# Verify a key pair locally
bash skills/alipay-open-platform-keys/scripts/verify_alipay_rsa2_keypair.sh <private_key.pem> <public_key.pem>

Alipay Open Platform Keys (RSA2) Data Schema & Taxonomy

The skill manages sensitive cryptographic files with a strict focus on security and directory structure.

File Type Pattern/Naming Convention Purpose
Private Key *.pem Stored locally; excluded from Git via .gitignore
Public Key *.pem Uploaded to Alipay Console
CSR *.csr Certificate Signing Request for Certificate Mode
App ID ALIPAY_APP_ID Environment variable for API authentication

Alipay Open Platform Keys (RSA2) Advanced Features

  • Multi-mode support: Seamlessly switch between Public Key mode and Certificate mode using CLI flags.
  • Security-First CI: Use the --no-print flag to prevent sensitive key data from appearing in logs or console output.
  • Automated Match Validation: Integrate the rsa_keys_match function directly into your Python codebase for runtime credential checks.
  • Comprehensive Error Reference: Detailed mapping of common Alipay gateway errors to specific resolution steps within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Categories
Github Stars: 0
forks: 0

Featured*