From 8560add2716ff99dc410188e1df49d296e23bf30 Mon Sep 17 00:00:00 2001 From: Sebastien Awwad Date: Tue, 3 Apr 2018 16:26:01 -0400 Subject: [PATCH] DOC: Add another example for key import function Covering what a call looks like if you accept a password rather than leaving prompt on. Signed-off-by: Sebastien Awwad --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index b2996256..9f7c4780 100644 --- a/README.rst +++ b/README.rst @@ -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: