# KMS Key Export/Import CLI ## Module Cli ## Status IMPLEMENTED ## Description File-backed signing key management via export/import with passphrase protection, version selection, and force-overwrite options for portable key bundles. ## Implementation Details - **Command Group**: `src/Cli/StellaOps.Cli/Commands/CryptoCommandGroup.cs` -- `CryptoCommandGroup` for crypto operations - **Command Handlers**: `src/Cli/StellaOps.Cli/Commands/CommandHandlers.Crypto.cs` -- crypto handlers - **Crypto Profile Validator**: `src/Cli/StellaOps.Cli/Services/CryptoProfileValidator.cs` -- crypto profile validation - **Tests**: `src/Cli/__Tests/StellaOps.Cli.Tests/CryptoCommandTests.cs` - **Commands**: - `stella crypto export --key --output --passphrase ` -- export signing key with passphrase protection. Options: `--version `, `--force` - `stella crypto import --file --passphrase ` -- import signing key from file ## E2E Test Plan - [ ] Run `stella crypto export --key --output ./key.enc --passphrase "secret"` and verify encrypted key exported - [ ] Run `stella crypto import --file ./key.enc --passphrase "secret"` and verify key imported - [ ] Verify wrong passphrase fails import with clear error - [ ] Run with `--version 2` and verify specific version exported - [ ] Run with `--force` and verify overwrite of existing file - [ ] Verify imported key can be used for signing operations