File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
crates/bitwarden-core/src/key_management Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -598,9 +598,12 @@ pub fn make_user_signing_keys_for_enrollment(
598
598
599
599
// Make new keypair and sign the public key with it
600
600
let signature_keypair = SigningKey :: make ( SignatureAlgorithm :: Ed25519 ) ;
601
+ let temporary_signature_keypair_id = SigningKeyId :: Local ( "temporary_key_for_rotation" ) ;
602
+ #[ allow( deprecated) ]
603
+ ctx. set_signing_key ( temporary_signature_keypair_id, signature_keypair. clone ( ) ) ?;
601
604
let signed_public_key = ctx. make_signed_public_key (
602
605
AsymmetricKeyId :: UserPrivateKey ,
603
- SigningKeyId :: UserSigningKey ,
606
+ temporary_signature_keypair_id ,
604
607
) ?;
605
608
606
609
Ok ( MakeUserSigningKeysResponse {
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ key_ids! {
36
36
#[ signing]
37
37
pub enum SigningKeyId {
38
38
UserSigningKey ,
39
+ #[ local]
40
+ Local ( & ' static str ) ,
39
41
}
40
42
41
43
pub KeyIds => SymmetricKeyId , AsymmetricKeyId , SigningKeyId ;
You can’t perform that action at this time.
0 commit comments