From 209e01deb6832dce76a307410fbab28b1e420093 Mon Sep 17 00:00:00 2001 From: EZSCALE Date: Sat, 7 Feb 2026 15:22:33 -0600 Subject: [PATCH] feat: add client-side SSH Ed25519 key generator on order page Adds a "Generate a new key" button to the checkout SSH key section that creates an Ed25519 keypair entirely in the browser using Web Crypto API. The public key auto-fills the form field, and the private key is presented for download/copy with a clear "save now" warning. Co-Authored-By: Claude Opus 4.6 --- modules/servers/VirtFusionDirect/hooks.php | 110 ++++++++++++++++ .../VirtFusionDirect/templates/js/keygen.js | 124 ++++++++++++++++++ 2 files changed, 234 insertions(+) create mode 100644 modules/servers/VirtFusionDirect/templates/js/keygen.js diff --git a/modules/servers/VirtFusionDirect/hooks.php b/modules/servers/VirtFusionDirect/hooks.php index 2f5c890..2541876 100644 --- a/modules/servers/VirtFusionDirect/hooks.php +++ b/modules/servers/VirtFusionDirect/hooks.php @@ -1,6 +1,7 @@