openpgp-card-sequoia: Fix make_cert()
[The primary key was missing its CS Key Flags after the changes in 4557c40b
, both in the User ID selfsigs, and the DirectKey signature]
This commit is contained in:
parent
9fe1ca31c0
commit
3756521141
1 changed files with 8 additions and 1 deletions
|
@ -87,6 +87,10 @@ pub fn make_cert<'app>(
|
||||||
// 1a) add a direct key signature
|
// 1a) add a direct key signature
|
||||||
let s = sign_on_card(&mut |signer| {
|
let s = sign_on_card(&mut |signer| {
|
||||||
SignatureBuilder::new(SignatureType::DirectKey)
|
SignatureBuilder::new(SignatureType::DirectKey)
|
||||||
|
.set_key_flags(
|
||||||
|
// Flags for primary key
|
||||||
|
KeyFlags::empty().set_signing().set_certification(),
|
||||||
|
)?
|
||||||
.sign_direct_key(signer, key_sig.role_as_primary())
|
.sign_direct_key(signer, key_sig.role_as_primary())
|
||||||
})?;
|
})?;
|
||||||
pp.push(s.into());
|
pp.push(s.into());
|
||||||
|
@ -147,7 +151,10 @@ pub fn make_cert<'app>(
|
||||||
uid.bind(
|
uid.bind(
|
||||||
signer,
|
signer,
|
||||||
&cert,
|
&cert,
|
||||||
SignatureBuilder::new(SignatureType::PositiveCertification),
|
SignatureBuilder::new(SignatureType::PositiveCertification).set_key_flags(
|
||||||
|
// Flags for primary key
|
||||||
|
KeyFlags::empty().set_signing().set_certification(),
|
||||||
|
)?,
|
||||||
)
|
)
|
||||||
})?;
|
})?;
|
||||||
pp.push(s.into());
|
pp.push(s.into());
|
||||||
|
|
Loading…
Reference in a new issue