mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 17:56:34 +00:00
Coolify / docker compose env injection routinely strips real newlines or wraps in quotes, causing createPrivateKey to throw ERR_OSSL_UNSUPPORTED and crashing the server before it can even start. tryParsePrivateKey now attempts: literal, \n→LF, CRLF→LF, quote-stripped, base64-decoded, and single-line PEM re-wrapped to 64-col. On total failure, logs a clear warning and falls back to on-disk / generated key instead of crashing. |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| bsb-tests.json | ||
| package.json | ||
| tsconfig.json | ||