From: Alexandre Detiste Date: Mon, 17 Feb 2025 22:30:38 +0100 Subject: Add identifier for ED25519 certificates Origin: https://github.com/paramiko/paramiko/pull/2434/commits/a8fb7aa74a03f8b73ae7166864808110629db47b Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071675 Forwarded: not-needed --- paramiko/ed25519key.py | 4 ++++ tests/pkey.py | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) Index: paramiko/paramiko/ed25519key.py =================================================================== --- paramiko.orig/paramiko/ed25519key.py +++ paramiko/paramiko/ed25519key.py @@ -41,6 +41,10 @@ class Ed25519Key(PKey): name = "ssh-ed25519" + @classmethod + def identifiers(cls): + return [cls.name, "ssh-ed25519-cert-v01@openssh.com"] + def __init__( self, msg=None, data=None, filename=None, password=None, file_obj=None ): Index: paramiko/tests/pkey.py =================================================================== --- paramiko.orig/tests/pkey.py +++ paramiko/tests/pkey.py @@ -229,7 +229,10 @@ class PKey_: ] def ed25519_is_protocol_name(self): - assert Ed25519Key.identifiers() == ["ssh-ed25519"] + assert Ed25519Key.identifiers() == [ + "ssh-ed25519", + "ssh-ed25519-cert-v01@openssh.com", + ] def ecdsa_is_all_curve_names(self): assert ECDSAKey.identifiers() == [