Revision 7506a7f1
b/tools/cfgupgrade | ||
---|---|---|
174 | 174 |
backup=True) |
175 | 175 |
|
176 | 176 |
if not options.dry_run: |
177 |
if not os.path.exists(options.RAPI_CERT_FILE): |
|
178 |
logging.debug("Writing RAPI certificate to %s", options.RAPI_CERT_FILE) |
|
179 |
bootstrap.GenerateSelfSignedSslCert(options.RAPI_CERT_FILE) |
|
180 |
|
|
181 |
if not os.path.exists(options.HMAC_CLUSTER_KEY): |
|
182 |
logging.debug("Writing HMAC key to %s", options.HMAC_CLUSTER_KEY) |
|
183 |
bootstrap.GenerateHmacKey(options.HMAC_CLUSTER_KEY) |
|
177 |
bootstrap.GenerateClusterCrypto(False, False, False) |
|
184 | 178 |
|
185 | 179 |
except: |
186 | 180 |
logging.critical("Writing configuration failed. It is probably in an" |
Also available in: Unified diff