URI: 
       trename ssl config variables - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit c35cdf1fd8b36c1ae1f948f1ed0a5c818b6fae37
   DIR parent 1b6abf6e028cbabd5e125784cff6d4ada665e722
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Thu, 30 Apr 2015 17:33:29 +0200
       
       rename ssl config variables
       
       Diffstat:
         M gui/qt/main_window.py               |       6 +++---
         M lib/paymentrequest.py               |       8 ++++----
       
       2 files changed, 7 insertions(+), 7 deletions(-)
       ---
   DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -737,9 +737,9 @@ class ElectrumWindow(QMainWindow):
                message = self.wallet.labels.get(addr, '')
                script = Transaction.pay_script('address', addr).decode('hex')
                outputs = [(script, amount)]
       -        cert_path = self.config.get('cert_path')
       -        chain_path = self.config.get('chain_path')
       -        return make_payment_request(outputs, message, time, time + expiration, cert_path, chain_path)
       +        key_path = self.config.get('ssl_key_path')
       +        cert_path = self.config.get('ssl_cert_path')
       +        return make_payment_request(outputs, message, time, time + expiration, key_path, cert_path)
        
            def export_payment_request(self, addr):
                pr = self.make_payment_request(addr)
   DIR diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py
       t@@ -258,7 +258,7 @@ class PaymentRequest:
        
        
        
       -def make_payment_request(outputs, memo, time, expires, cert_path, chain_path):
       +def make_payment_request(outputs, memo, time, expires, key_path, cert_path):
            pd = pb2.PaymentDetails()
            for script, amount in outputs:
                pd.outputs.add(amount=amount, script=script)
       t@@ -271,11 +271,11 @@ def make_payment_request(outputs, memo, time, expires, cert_path, chain_path):
            pr = pb2.PaymentRequest()
            pr.serialized_payment_details = pd.SerializeToString()
            pr.signature = ''
       -    if cert_path and chain_path:
       +    if key_path and cert_path:
                import tlslite
       -        with open(cert_path, 'r') as f:
       +        with open(key_path, 'r') as f:
                    rsakey = tlslite.utils.python_rsakey.Python_RSAKey.parsePEM(f.read())
       -        with open(chain_path, 'r') as f:
       +        with open(cert_path, 'r') as f:
                    chain = tlslite.X509CertChain()
                    chain.parsePemList(f.read())
                certificates = pb2.X509Certificates()