From 3ae17c463dbc9a1705d8f75cf8975ea8ad6d1b22 Mon Sep 17 00:00:00 2001 From: James Alvarez Date: Mon, 30 Aug 2021 13:21:58 +0800 Subject: [PATCH] changed encoding of public and private keys --- lib/dkim-handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dkim-handler.js b/lib/dkim-handler.js index 92a706a1..878489f0 100644 --- a/lib/dkim-handler.js +++ b/lib/dkim-handler.js @@ -30,11 +30,11 @@ class DkimHandler { modulusLength: keyBits || 2048, // options publicExponent: keyExponent || 65537, publicKeyEncoding: { - type: 'pkcs1', + type: 'spki', format: 'pem' }, privateKeyEncoding: { - type: 'pkcs1', + type: 'pkcs8', format: 'pem' } });