certification is always done with the master key

This commit is contained in:
Vincent Breitmoser
2014-05-03 15:59:25 +02:00
parent 4b3cfd4fa4
commit c2c6a90991
2 changed files with 1 additions and 56 deletions

View File

@@ -836,7 +836,7 @@ public class KeychainIntentService extends IntentService
Log.e(Constants.TAG, "key not found!", e);
// TODO: throw exception here!
}
PGPSecretKey certificationKey = PgpKeyHelper.getFirstCertificationSubkey(secretKeyRing);
PGPSecretKey certificationKey = secretKeyRing.getSecretKey();
publicKey = keyOperation.certifyKey(certificationKey, publicKey,
userIds, signaturePassphrase);
publicRing = PGPPublicKeyRing.insertPublicKey(publicRing, publicKey);