Skip to content

Commit

Permalink
DOC: Add another example for key import function
Browse files Browse the repository at this point in the history
Covering what a call looks like if you accept a password rather
than leaving prompt on.

Signed-off-by: Sebastien Awwad <[email protected]>
  • Loading branch information
awwad committed Apr 3, 2018
1 parent 4508a78 commit 8560add
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ Import RSA Keys
# Import an existing private key. If your private key is encrypted,
# which it should be, you either have to pass a 'password' or enter one
# on the prompt.
>>> private_rsa_key1 = import_rsa_privatekey_from_file("rsa_key1", password='some passphrase")
OR:
>>> private_rsa_key1 = import_rsa_privatekey_from_file("rsa_key1", prompt=True)
Enter a password for the encrypted RSA key:

Expand Down

0 comments on commit 8560add

Please sign in to comment.