Revision 0aee8ee9 lib/utils/x509.py

b/lib/utils/x509.py
259 259
  @param common_name: commonName value
260 260
  @type validity: int
261 261
  @param validity: Validity for certificate in seconds
262
  @return: a tuple of strings containing the PEM-encoded private key and
263
           certificate
264 262

  
265 263
  """
266 264
  # Create private and public key
......
294 292
  @param common_name: commonName value
295 293
  @type validity: int
296 294
  @param validity: validity of certificate in number of days
297
  @return: a tuple of strings containing the PEM-encoded private key and
298
           certificate
299 295

  
300 296
  """
301 297
  # TODO: Investigate using the cluster name instead of X505_CERT_CN for
......
305 301
                                                   validity * 24 * 60 * 60)
306 302

  
307 303
  utils_io.WriteFile(filename, mode=0400, data=key_pem + cert_pem)
308
  return (key_pem, cert_pem)

Also available in: Unified diff