From d04da343903a64ecfad8a7964144f52959fe2263 Mon Sep 17 00:00:00 2001 From: dusterio Date: Wed, 14 Dec 2016 12:41:06 +1100 Subject: [PATCH] r Readme --- README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 16eeda9..30ad436 100644 --- a/README.md +++ b/README.md @@ -70,13 +70,34 @@ Lumen application key ### Gateway variables +#### PRIVATE_KEY + +Put your private RSA key in this variable + +You can generate the key with OpenSSL: + +```bash +$ openssl genrsa -out private.key 4096 +``` + +Replace new line characters with \n: +```bash +awk 1 ORS='\\n' private.key +``` + #### PUBLIC_KEY Put your public RSA key in this variable -#### PRIVATE_KEY +Extract public key using OpenSSL: +```bash +$ openssl rsa -in private.key -pubout > public.key +``` -Put your private RSA key in this variable +Replace new line characters with \n: +```bash +awk 1 ORS='\\n' public.key +``` #### GATEWAY_SERVICES