mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-19 00:03:30 +00:00
15 lines
583 B
Bash
Executable file
15 lines
583 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
openssl genpkey -algorithm Ed25519 -out arc-jwt-private.pem
|
|
openssl pkey -in arc-jwt-private.pem -pubout -out arc-jwt-public.pem
|
|
|
|
echo ""
|
|
echo "Generated:"
|
|
echo " arc-jwt-private.pem (private key — for arc-web / ARC_JWT_PRIVATE_KEY)"
|
|
echo " arc-jwt-public.pem (public key — for arc-workflows / ARC_JWT_PUBLIC_KEY)"
|
|
echo ""
|
|
echo "Set env vars with the PEM contents (including header/footer lines):"
|
|
echo ""
|
|
echo ' export ARC_JWT_PRIVATE_KEY="$(cat arc-jwt-private.pem)"'
|
|
echo ' export ARC_JWT_PUBLIC_KEY="$(cat arc-jwt-public.pem)"'
|