Skip to content

Commit a5f2810

Browse files
committed
Fixed issue with password encoding when generating SSH keypair
1 parent e834e50 commit a5f2810

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vcert/ssh_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def generate(self, key_size=DEFAULT_SSH_KEY_SIZE, passphrase=None):
175175
:return:
176176
"""
177177
if passphrase:
178-
encryption = serialization.BestAvailableEncryption(passphrase)
178+
encryption = serialization.BestAvailableEncryption(passphrase.encode())
179179
else:
180180
encryption = serialization.NoEncryption()
181181

0 commit comments

Comments
 (0)