From bd8af171712b3e460b3b7be2c85b86ec64e5a132 Mon Sep 17 00:00:00 2001 From: Son NK Date: Tue, 28 Jan 2020 14:39:09 +0700 Subject: [PATCH] add a bash command to get PUBLIC_KEY from dkim.pub.key --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3e0b5ca2..685cc128 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,12 @@ gh then the `PUBLIC_KEY` would be `abcdefgh`. +You can get the `PUBLIC_KEY` by running this command: + +```bash +sed "s/-----BEGIN PUBLIC KEY-----/v=DKIM1; k=rsa; p=/g" dkim.pub.key | sed 's/-----END PUBLIC KEY-----//g' |tr -d '\n' +``` + To verify, the following command ```bash