"""
- server = CertmasterXMLRPCServer((xmlrpcinstance.cfg.listen_addr, CERTMASTER_LISTEN_PORT))
+ config = read_config(CERTMASTER_CONFIG, CMConfig)
+ listen_addr = config.listen_addr
+ listen_port = config.listen_port
+ if listen_port == '':
+ listen_port = CERTMASTER_LISTEN_PORT
+ server = CertmasterXMLRPCServer((listen_addr,listen_port))
server.logRequests = 0 # don't print stuff to console
server.register_instance(xmlrpcinstance)
xmlrpcinstance.logger.info("certmaster started")
class CMConfig(BaseConfig):
log_level = Option('INFO')
listen_addr = Option('')
+ listen_port = IntOption(51235)
cadir = Option('/etc/pki/certmaster/ca')
cert_dir = Option('/etc/pki/certmaster')
certroot = Option('/var/lib/certmaster/certmaster/certs')
class MinionConfig(BaseConfig):
log_level = Option('INFO')
certmaster = Option('certmaster')
+ certmaster_port = IntOption(51235)
cert_dir = Option('/etc/pki/certmaster')
config = read_config(config_file, MinionConfig)
server = config.certmaster
- port = 51235
+ port = config.certmaster_port
try:
s = socket.socket()
config_file = '/etc/certmaster/minion.conf'
config = read_config(config_file, MinionConfig)
cert_dir = config.cert_dir
- master_uri = 'http://%s:51235/' % config.certmaster
+ master_uri = 'http://%s:%s/' % (config.certmaster, config.certmaster_port)
# print "DEBUG: acquiring hostname"
hn = get_hostname()
# print "DEBUG: hostname = %s\n" % hn
[main]
autosign = no
listen_addr =
+listen_port = 51235
cadir = /etc/pki/certmaster/ca
cert_dir = /etc/pki/certmaster
certroot = /var/lib/certmaster/certmaster/certs
[main]
certmaster = certmaster
+certmaster_port = 51235
log_level = DEBUG
cert_dir = /etc/pki/certmaster