diff --git a/src/Core/Vault/Services/Implementations/CipherService.cs b/src/Core/Vault/Services/Implementations/CipherService.cs index 7933625864..745d90b741 100644 --- a/src/Core/Vault/Services/Implementations/CipherService.cs +++ b/src/Core/Vault/Services/Implementations/CipherService.cs @@ -1048,6 +1048,7 @@ public class CipherService : ICipherService CipherIdentityData identityData => JsonSerializer.Serialize(identityData), CipherCardData cardData => JsonSerializer.Serialize(cardData), CipherSecureNoteData noteData => JsonSerializer.Serialize(noteData), + CipherSSHKeyData sshKeyData => JsonSerializer.Serialize(sshKeyData), _ => throw new ArgumentException("Unsupported cipher data type.", nameof(data)) }; } @@ -1060,6 +1061,7 @@ public class CipherService : ICipherService CipherType.Identity => JsonSerializer.Deserialize(cipher.Data), CipherType.Card => JsonSerializer.Deserialize(cipher.Data), CipherType.SecureNote => JsonSerializer.Deserialize(cipher.Data), + CipherType.SSHKey => JsonSerializer.Deserialize(cipher.Data), _ => throw new ArgumentException("Unsupported cipher type.", nameof(cipher)) }; }