1. Home
  2. Administration
  3. Cannot Import OpenPGP Public Key

Cannot Import OpenPGP Public Key

Problem

I attempt to import an OpenPGP Public Key, but I get an error message stating that the file “has no public keys to import.”

Discussion

When you receive an ASCII armored Public Key, there will be a header block followed by the encoded key.

The key should look something like this:

-----BEGIN PGP PUBLIC KEY BLOCK-----
 Version: GnuPG v1.0.6 (AIX)
 Comment: For info see http://www.gnupg.org

 mQGiBD1FqSARBACnF2UO4O3opzu  ...

There needs to be a blank line between the header block and the encoded public key (per the standard), or Diplomat MFT will fail to import properly.

Solution

If you receive a file such as this without a blank line between the header and the encoded body, simply open the file in a text editor such as Notepad, add the blank line, and import the key again.

Updated on April 21, 2022

Was this article helpful?

Related Articles