1
0

payment requests: cmdline fixes

This commit is contained in:
ThomasV
2015-07-11 21:09:56 +02:00
parent fbc23a61a3
commit da55d9ed6e
2 changed files with 4 additions and 4 deletions

View File

@@ -319,7 +319,7 @@ def sign_request_with_alias(pr, alias, alias_privkey):
return pr
def sign_request_with_x509(pr, alias, alias_privkey):
def sign_request_with_x509(pr, key_path, cert_path):
import tlslite
with open(key_path, 'r') as f:
rsakey = tlslite.utils.python_rsakey.Python_RSAKey.parsePEM(f.read())
@@ -355,7 +355,7 @@ def make_request(config, req, alias=None, alias_privkey=None):
if key_path and cert_path:
sign_request_with_x509(pr, key_path, cert_path)
requestor = pr.requestor
requestor = 'x'
elif alias and alias_privkey:
requestor = alias