Revision eafd8762 lib/rpc.py

b/lib/rpc.py
39 39
from ganeti import objects
40 40
from ganeti import http
41 41
from ganeti import serializer
42
from ganeti import constants
42 43

  
43 44

  
44 45
# Module level variable
......
121 122
    if address is None:
122 123
      address = name
123 124

  
125
    # TODO: Cache key and certificate for different requests
126
    ssl_params = http.HttpSslParams(ssl_key_path=constants.SSL_CERT_FILE,
127
                                    ssl_cert_path=constants.SSL_CERT_FILE)
128

  
124 129
    self.nc[name] = http.HttpClientRequest(address, self.port, http.HTTP_PUT,
125 130
                                           "/%s" % self.procedure,
126
                                           post_data=self.body)
131
                                           post_data=self.body,
132
                                           ssl_params=ssl_params,
133
                                           ssl_verify_peer=True)
127 134

  
128 135
  def GetResults(self):
129 136
    """Call nodes and return results.

Also available in: Unified diff