Revision cd34faf2 lib/bootstrap.py
b/lib/bootstrap.py | ||
---|---|---|
66 | 66 |
utils.AddAuthorizedKey(auth_keys, utils.ReadFile(pub_key)) |
67 | 67 |
|
68 | 68 |
|
69 |
def _GenerateSelfSignedSslCert(file_name, validity=(365 * 5)):
|
|
69 |
def GenerateSelfSignedSslCert(file_name, validity=(365 * 5)): |
|
70 | 70 |
"""Generates a self-signed SSL certificate. |
71 | 71 |
|
72 | 72 |
@type file_name: str |
... | ... | |
107 | 107 |
the cluster and also generates the SSL certificate. |
108 | 108 |
|
109 | 109 |
""" |
110 |
_GenerateSelfSignedSslCert(constants.SSL_CERT_FILE)
|
|
110 |
GenerateSelfSignedSslCert(constants.SSL_CERT_FILE) |
|
111 | 111 |
|
112 | 112 |
# Don't overwrite existing file |
113 | 113 |
if not os.path.exists(constants.RAPI_CERT_FILE): |
114 |
_GenerateSelfSignedSslCert(constants.RAPI_CERT_FILE)
|
|
114 |
GenerateSelfSignedSslCert(constants.RAPI_CERT_FILE) |
|
115 | 115 |
|
116 | 116 |
if not os.path.exists(constants.HMAC_CLUSTER_KEY): |
117 | 117 |
utils.WriteFile(constants.HMAC_CLUSTER_KEY, |
Also available in: Unified diff