Convert PKCS#7 to JOSE (streaming)

Converts PKCS#7/CMS files of any size to modern JOSE (JWE/JWS) detached format.

This is a format conversion (PKCS#7 container → JOSE container), not an algorithm conversion.
Classical algorithms (RSA, ECDSA, AES) are preserved or upgraded (CBC→GCM).

Supported conversions:

  • SignedData (1 signer) → JWS detached JSON
  • EnvelopedData (1 recipient) → JWE detached multipart
  • SignedAndEnvelopedData (1 signer + 1 recipient) → JWE(JWS) detached multipart

Response format varies by PKCS#7 type:

SignedData returns application/octet-stream:

{"protected":"eyJhbGc...","signature":"dGVz..."}

EnvelopedData returns multipart/mixed:

------ankatech-<UUID>
Content-Type: application/jose+json

{"protected":"...","recipients":[...],"iv":"..."}

------ankatech-<UUID>
Content-Type: application/octet-stream

<binary ciphertext stream>
------ankatech-<UUID>--

Important:

  • No size limit (processes files of any size)
  • Response does NOT include metadata (signers, recipients, algorithm details)
  • For metadata: Use POST /api/migration/stream/analyze-pkcs7 first
  • Output is directly compatible with POST /api/v3/crypto/stream/reencrypt or /resign

Prerequisites: Import signer/recipient keys via POST /api/migration/pkcs12

Input: multipart/form-data with 'metadata' (JSON) and 'file' (binary PKCS#7)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
metadata
object
required

Metadata for streaming PKCS#7 to JOSE conversion (produces detached JOSE format)

file
required
Headers
string
enum
Defaults to application/problem+json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!