Skip to content

Commit

Permalink
fix: deploy key gen
Browse files Browse the repository at this point in the history
  • Loading branch information
arpanetus committed Feb 11, 2024
1 parent 0cde64b commit f7a4fbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions higgsfield/internal/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ def generate_deploy_keys() -> Tuple[bytes, bytes]:

private_bytes = private_key.private_bytes(
encoding=serialization.Encoding.PEM,
format=serialization.PrivateFormat.PKCS8,
format=serialization.PrivateFormat.OpenSSH,
encryption_algorithm=serialization.NoEncryption(),
)

public_bytes = public_key.public_bytes(
encoding=serialization.Encoding.PEM,
format=serialization.PublicFormat.SubjectPublicKeyInfo,
encoding=serialization.Encoding.OpenSSH,
format=serialization.PublicFormat.OpenSSH,
)

return private_bytes, public_bytes

0 comments on commit f7a4fbf

Please sign in to comment.