What to do when Roundcube says: Decryption failed: Key password required, and: Could not decrypt this message

Roundcube is great. Easy to get up and running, but it surprises me that I couldn't find the following solution online, so I'm making a post here.

Roundcube error: Decryption failed: Key password required.When you receive an email (say, from a public key generator) that is encrypted by your own PRIVATE key and you haven't fully configured encryption, it looks like this:

In addition, you'll see a little message in the corner that looks like this:

Could not decrypt this message: Error: Unknown ASCII armor type

 

 

 

What's happening is that you haven't imported the key into Roundcube which will be used to decrypt the message. It would be nice if the error message said this more explicitly, but I guess it's not common that people (effectively) send an email to themselves using a key they haven't yet imported. I get it. It's an obscure defect.

So you need to find the key, wherever it is, and then import it. You may still need to export it from site where you generated it. Make sure this key is stored in a safe place.

Do the following:

  1. Go to Settings, PGP Keys.
  2. In the top menu bar, toward the right, click on "Import."
  3. You get an "import keys" popup which requests you to browse for a file on your local computer.
  4. Look for the PRIVATE key that goes with the email, select the file, and then click "Import."
  5. You'll be prompted for the private key password or passphrase that you used to create the key.
  6. Enter the passphrase and click "OK".

Now you should be able to read the email.

 

Add a comment

HTML code is displayed as text and web addresses are automatically converted.

Page top