It sometimes happens  that your Public PGP Key is not recognized by one of our WordPress plugins, wp2pgpmail or Gravity Forms PGP Encryption. In this case, there is an easy trick to solve the problem. You only need to use Google Chrome or Mozilla Firefox with Mailvelope, a free extension. Let’s see what to do.

Let’s say that the following Public PGP Key, created with Gpg4win, is not recognized by the plugin:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2

mQENBFjjbl0BCAC2Dm8wn943mO5yQw5YKddVs/qXzTL1gLRE+hQX939gAZBWB8Tc
TdXl8fP901iAe2FtT40oGdTb6ohF6lGspwVvzkxeTXO4xY3aWXsp80frO4h30ENH
oTdeahYcoRZQI/xid+B5881bASW0E0OexpY5lAMpfyceiNs7XbY/zAQdtZWS80fs
t5rufQC1r9RNgzC9yXGCEpAM04gVAk9xRXmOa3ICbP7F/gaS2a7Y/X0hOYk0HlPf
EktSzPdOnh0bjkWvMlTROz0wHv9otna4yqKSKhUqUoI9otsbAps3FsejgeIeo54z
dOCCVGHxZmlZ7KvG9OeZ9y2Pw0ncLJBJI0hPABEBAAG0JXdwMnBncG1haWwgdGVz
dCA8dGVzdEB3cDJwZ3BtYWlsLmNvbT6JATkEEwEIACMFAljjbl0CGwMHCwkIBwMC
AQYVCAIJCgsEFgIDAQIeAQIXgAAKCRBumCkK6HetJpyWB/4odOU6NqvdP0cSp7eg
vKmDyL8KS5OLi9y3zB7c+oKIfO+Rr7QYkvlTL2/3yMyNZZ/dyVKmwK+lcal3aXco
GeGkQlzuPUOR2az9Ac2t7WdxUQHenKlnj7vKV+1qX9Lxju3nSmOan6twX58DXJ+s
KONcbBvvGbZOqB+XlKK+w1R2xT5nbWBn5JYnjtG483OGSa712NFlSoti17VW1QTZ
zmMdWUORbhgJm2/Kp23RlZAs51Na6G9S3MqTl/5ChD9LEV7ROqutoG+TNbWPdFyT
hRGew87sMAhXA4o6X+ONnHsd3C7/y20ZofTXc4b5uXptmwRydrqpcKSco47tPUxZ
H1/JuQENBFjjbl0BCADD9e/wxTQUBPTGUfixJY9/0dbs+zS4X0VjuSNQVb+xpHhO
37DijoGN+xPtNIreD9NmPjGTCn1pJre92cDl0bgNQp/yjkIJaQ0b7d9kFm9X2rAy
Q0NklTIcWmPy9erURMnCy/D7KKkGvckM6dkvhfI7t7YiquX4cLvzl7ERe/RykXSV
B7keZs4vGSeiveqqlTYg7306wEG2EigGdBf11iJXwUXMS9bPcDwNyAAhaLhtj5QT
Ss62jygyvJWWUvhCwFb+Ia16un5pe1aFTtKH7INnC5cPuzOkf5/KD/IM6/c4e02m
8pmvrMt6u/74vUbp61lTlWDfTWqT9y6QdbvBb1D5ABEBAAGJAR8EGAEIAAkFAljj
bl0CGwwACgkQbpgpCuh3rSaxzwgAsQRjbOkGSLiABhQyKIW40ZkwJ4JCipj01bbC
9DIpdUPWZ3REdn960YdEFyLDYXuTG3LHmxV1Ovxi+4u7plA0QTpEiwgRK/Hql7Qm
bSDAy2JMXwTHmDRJupwmpTZUnZ7Uu2hwtfhtT6vLAeVnoAPdkdLuRL8/Ih5e+5ky
TGes4H/5LaZOU68t7D/Lz5vgUcHyMy/u0s6WNERkQ4KLKU/NnnRCN8OgT/Mi102H
ElHY945q2uyjInDrc6yTRGnnag/aLsIdCWc4Q7FnBPTcBT3tHgxTN4RsfNNt6rX7
Om7csTbMj7SEx2gcAO9HUcHdcLaHfKQZ34JBl2ii6zbl8v8HCQ==
=1i7N
-----END PGP PUBLIC KEY BLOCK-----

 

Import the key in Mailvelope:

Then, display the key by clicking on it:

Go to the Export tab to display the Public PGP Key Block:

Here the new version of the key. It contains absolutely the same data, but, as you can see, the block is different:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: Mailvelope v1.7.1
Comment: https://www.mailvelope.com

xsBNBFjjbl0BCAC2Dm8wn943mO5yQw5YKddVs/qXzTL1gLRE+hQX939gAZBW
B8TcTdXl8fP901iAe2FtT40oGdTb6ohF6lGspwVvzkxeTXO4xY3aWXsp80fr
O4h30ENHoTdeahYcoRZQI/xid+B5881bASW0E0OexpY5lA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uh3rSaxzwgAsQRjbOkGSLiABhQy
KIW40ZkwJ4JCipj01bbC9DIpdUPWZ3REdn960YdEFyLDYXuTG3LHmxV1Ovxi
+4u7plA0QTpEiwgRK/Hql7QmbSDAy2JMXwTHmDRJupwmpTZUnZ7Uu2hwtfht
T6vLAeVnoAPdkdLuRL8/Ih5e+5kyTGes4H/5LaZOU68t7D/Lz5vgUcHyMy/u
0s6WNERkQ4KLKU/NnnRCN8OgT/Mi102HElHY945q2uyjInDrc6yTRGnnag/a
LsIdCWc4Q7FnBPTcBT3tHgxTN4RsfNNt6rX7Om7csTbMj7SEx2gcAO9HUcHd
cLaHfKQZ34JBl2ii6zbl8v8HCQ==
=S8lU
-----END PGP PUBLIC KEY BLOCK-----

 

Only the display is different, nothing else has changed; the private key remains unchanged. You can then import the new version of the public key in the WordPress plugin, and you should not get any error 🙂