diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeyRingBuilder.java b/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeyRingBuilder.java index 3f22174e..b45baeb3 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeyRingBuilder.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeyRingBuilder.java @@ -175,6 +175,8 @@ public class KeyRingBuilder implements KeyRingBuilderInterface { SelfSignatureSubpackets subpackets = null; if (callback == null) { subpackets = hashedSubPacketGenerator; + subpackets.setPrimaryUserId(null); + // additional user-ids are not primary } else { subpackets = SignatureSubpackets.createHashedSubpackets(primaryPubKey); callback.modifyHashedSubpackets(subpackets);