Skip to content

Commit 9dd1255

Browse files
committed
Backport of #33.
1 parent e40cd7c commit 9dd1255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yubihsm/objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,10 @@ def sign_ssh_certificate(
708708
709709
:param int template_id: The ID of the SSH TEMPLATE to use.
710710
:param bytes request: The SSH certificate request.
711-
:return: The signed SSH certificate.
711+
:return: The SSH certificate signature.
712712
:rtype: bytes
713713
"""
714-
msg = struct.pack("!HH", self.id, template_id) + request
714+
msg = struct.pack("!HHB", self.id, template_id, algorithm) + request
715715
return self.session.send_secure_cmd(COMMAND.SIGN_SSH_CERTIFICATE, msg)
716716

717717

0 commit comments

Comments
 (0)