ES256, ES384, ES512:openssl genpkey \
-out ./private.pem \
-algorithm EC \
-pkeyopt ec_paramgen_curve:prime256v1 \
-aes-256-cbc \
-pass pass:${APP_SECRET}
RS256, RS384, RS512:openssl genpkey \
-out ./private.pem \
-algorithm RSA \
-pkeyopt rsa_keygen_bits:4096 \
-aes-256-cbc \
-pass pass:${APP_SECRET}
openssl pkey \
-in private.pem \
-passin pass:${APP_SECRET} \
-out public.pem \
-pubout
OpenSSL Cookbook
How can I help you explore Laravel packages today?