Added warning if cert '/etc/ipa/ca.crt' exists

https://fedorahosted.org/freeipa/ticket/3944
This commit is contained in:
Martin Basti
2013-10-15 11:31:49 +02:00
committed by Martin Kosek
parent ed3d184a7d
commit c49cf9572a

View File

@@ -1889,6 +1889,10 @@ def install(options, env, fstore, statestore):
root_logger.warning("Option 'force-join' has no additional effect "
"when used with together with option 'keytab'.")
# Check if old certificate exist and show warning
if not options.ca_cert_file and get_cert_path(options.ca_cert_file) == CACERT:
root_logger.warning("Using existing certificate '%s'.", CACERT)
# Create the discovery instance
ds = ipadiscovery.IPADiscovery()