mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
altool bailed with "Failed to load AuthKey file. (-39) The file ... does not contain a valid authentication key." — same shape as the .p12 truncation we hit earlier. The .p8 stored secret is probably truncated or has stray characters from the original web-UI paste. Add fail-fast validation right after decoding the .p8 to disk: prints the first + last lines (just the PEM markers, no key body) and runs `openssl pkey -in file -noout` to actually parse it. If either check fails the step bombs immediately with a clear "re-paste via Gitea API" instruction, saving 30+ seconds before altool fails the same way with a less useful error.