-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo-interactive.sh
More file actions
52 lines (43 loc) · 1.6 KB
/
demo-interactive.sh
File metadata and controls
52 lines (43 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Demo script for the new Interactive TUI mode
set -e
echo "🔐 rust-hsm Interactive TUI Demo"
echo "================================="
echo ""
echo "The Interactive TUI provides a menu-driven interface for HSM operations!"
echo ""
echo "📋 Features:"
echo " • 📊 Information & Status - View HSM info, slots, mechanisms"
echo " • 🔧 Token Management - Initialize and configure tokens"
echo " • 🔑 Key Operations - Generate, inspect, export, delete keys"
echo " • 🔐 Cryptographic Operations - Sign, verify, encrypt, decrypt"
echo " • ⚡ Symmetric Operations - AES, key wrapping, HMAC"
echo " • 🔍 Troubleshooting - Error explanations, key search, comparisons"
echo ""
echo "🎮 Navigation:"
echo " • ↑/↓ arrows - Navigate menus"
echo " • Enter - Select item"
echo " • Esc - Go back / Quit"
echo " • h - Help"
echo " • q - Quit"
echo ""
echo "🚀 Launch the Interactive TUI:"
echo " docker exec -it rust-hsm-app rust-hsm-cli interactive"
echo ""
echo " With specific token:"
echo " docker exec -it rust-hsm-app rust-hsm-cli interactive --label MY_TOKEN"
echo ""
echo "💡 Benefits:"
echo " • Discover commands without reading docs"
echo " • Guided workflows for beginners"
echo " • Perfect for demos and exploration"
echo " • Visual feedback and help text"
echo " • No need to remember command syntax"
echo ""
echo "🎯 Perfect for:"
echo " • Learning HSM operations"
echo " • Quick operational tasks"
echo " • Demonstrating capabilities"
echo " • Guided troubleshooting"
echo ""
echo "Ready to explore your HSM interactively! 🎉"