Skip to main content
Uttir

RSA Signature Generator (SHA256withRSA)

Sign a string with your RSA private key and get the Base64 signature. Accepts PKCS#8 and PKCS#1 keys.

RSA Signature Generator (SHA256withRSA) — Produce an RSA signature without leaving the browser. Paste a private key and a message, and you get the Base64 signature back — the same value you would get from `openssl dgst -sha256 -sign`.

Your private key is processed in this browser tab and never sent anywhere — there is no server. Nothing is stored, so reloading the page clears it.

Was RSA Signature Generator (SHA256withRSA) useful?

What is RSA Signature Generator (SHA256withRSA)?

Produce an RSA signature without leaving the browser. Paste a private key and a message, and you get the Base64 signature back — the same value you would get from `openssl dgst -sha256 -sign`.

This is the scheme Indonesian payment APIs use for the X-SIGNATURE header: SHA256withRSA, also called RSASSA-PKCS1-v1_5. It is not the same as RSASSA-PSS, and a signature made with one is rejected by a verifier expecting the other.

How to use it

  1. Paste your private key

    PKCS#8 (BEGIN PRIVATE KEY) and PKCS#1 (BEGIN RSA PRIVATE KEY) both work.

  2. Paste the string to sign

    The exact text, with no trailing newline.

  3. Copy the signature

    Base64, ready for an X-SIGNATURE header.

Examples

Sign a release manifest string with SHA256withRSA

Paste an unencrypted PKCS#8 or PKCS#1 private key PEM and a plain payload.

Message: "release=2.4.0&sha=9f81c2" | Key: PKCS#8 Private Key PEM | Scheme: PKCS1-v1_5

Result: Deterministic 256-byte (344-char Base64 for 2048-bit key) RSA signature string.

Produce an RSA-PSS signature for strict API gateways

Switch padding mode to PSS when integrating modern OAuth or financial specs.

Message: "POST:/v1/orders:1735689600" | Padding: RSA-PSS (SHA-256)

Result: Fresh Base64 signature verifiable against the paired public key in RSA Verify.

Frequently asked questions

Related guides

Related tools