Skip to content

[BUG] "No decryption keys found" when importing subkeys-only (stripped primary key) export #944

Description

@alansav

Describe the bug

Using a GPG key where the master/primary key is certify-only and kept offline, with only subkeys (signing, encryption, auth) exported via gpg --export-secret-subkeys and imported on-device.

Steps to reproduce

  1. Generate a GPG key with certify-only primary + separate sign/encrypt/auth subkeys.
  2. Export subkeys only: gpg --export-secret-subkeys --armor > subkeys-only.asc
  3. Import subkeys-only.asc into Password Store's internal Key Manager.
  4. Key shows correctly in Key Manager (able to view/manage), no import error.
  5. Attempt to decrypt an existing password entry.

Expected behavior

Passphrase prompt, then successful decryption.

Screenshots

Immediate "No decryption keys found" error — no passphrase prompt appears at all.

Device information

Android Password Store
GrapheneOS (Pixel 9a)
GPG key: Ed25519 primary (Certify only), cv25519 encryption subkey, Ed25519 signing subkey, Ed25519 auth subkey — generated GnuPG 2.4.x

Additional context

  • Directly copying the same .gpg file and decrypting via OpenKeychain (separately installed) succeeds without issue — confirms the encrypted data and the encryption subkey itself are valid and functional.
  • Re-exporting with --no-throw-keyids and adjusting key preferences to remove AEAD/OCB (setpref without AEAD) did not resolve the issue — ruling out the known AEAD/PGPainless incompatibility ([BUG] Unhelpful error message on exception during decryption, with gpg 2.40 Curve25519 AEAD android-password-store/Android-Password-Store#2586).
  • Importing the full master key (not stripped) into Password Store's Key Manager works correctly and decrypts without issue — isolates the problem specifically to handling of a stripped-primary-key (subkeys-only) import, not the encryption algorithm or key format itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions