Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
backup=True)
if not options.dry_run:
- if not os.path.exists(options.RAPI_CERT_FILE):
- logging.debug("Writing RAPI certificate to %s", options.RAPI_CERT_FILE)
- bootstrap.GenerateSelfSignedSslCert(options.RAPI_CERT_FILE)
-
- if not os.path.exists(options.HMAC_CLUSTER_KEY):
- logging.debug("Writing HMAC key to %s", options.HMAC_CLUSTER_KEY)
- bootstrap.GenerateHmacKey(options.HMAC_CLUSTER_KEY)
+ bootstrap.GenerateClusterCrypto(False, False, False)
except:
logging.critical("Writing configuration failed. It is probably in an"