post
https://{host}:{port}/api/v3/migration/keystores
Imports keystores (PKCS#12 or JKS) containing private keys and trusted certificates (CAs).
Format Auto-Detection:
- PKCS#12 (.p12, .pfx): Detected via magic bytes 0x30
- JKS (.jks): Detected via magic bytes 0xFEEDFEED
- Both formats fully supported for migration
Supports:
- Private keys with X.509 certificates
- Trusted certificates (Root CAs, Intermediate CAs)
- Mixed bundles (keys + CAs)
- Truststore-only files (no private keys)
Certificate Validation Modes:
- STRICT (production): Reject expired/invalid certificates
- IMPORT_ONLY (recovery): Allow expired with keyOps=[decrypt,verify]
- SKIP (testing): No validation
Multi-Key Support:
- Single key: Uses kid unchanged
- Multiple keys (AUTO): Generates kid-{sanitizedAlias}
- Multiple keys (MANUAL): Uses explicit kidMappings
Trusted Certificates:
- Assigned kids with "-trust-" prefix: kid-trust-{sanitizedAlias}
- Stored in same keystore as private keys
- Used for PKCS#7/CMS signature verification
Idempotency:
- Reimporting existing entries returns 200 OK with skipped list
- Partial reimport (some new, some existed) returns 206 Partial Content
- New entries return 201 Created
Maximum Size: 20 MB (configurable via MIGRATION_MAX_KEYSTORE_SIZE)
Response: Returns KeystoreImportResponse with summary, format detection, imported keys, certificates, skipped entries, and failures.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…