Skip to content

Commit

Permalink
provide example for key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
peteris-zealid authored Jun 27, 2022
1 parent 40c9a5b commit 966ee77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion certomancer/registry/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def _load(self):
else:
private, public = load_private_key(key_bytes, self.password)
except Exception as e:
raise IOError(f"Failed to load key in {self.path}") from e
raise IOError(
f"Failed to load key in {self.path} "
f"Generate (for example) with `ssh-keygen -t rsa -b 4096 -m PEM -f {self.path}`"
) from e
self._key = AsymKey(public=public, private=private)

@property
Expand Down

0 comments on commit 966ee77

Please sign in to comment.