Commit 7d2c8249 authored by David Johnson's avatar David Johnson

Handle an unexpected cert case.

parent bd73b209
......@@ -253,6 +253,10 @@ DEFAULT_CMS = {
"emulab" : "https://www.emulab.net:12369/protogeni/xmlrpc",
}
RPC_CERT_CN_REMAPS = {
"www.apt.emulab.net" : "boss.apt.emulab.net",
}
def parse_cm_list(cmliststr):
if str is None:
return
......@@ -619,7 +623,10 @@ class ProtoGeniServer(object):
pass
if "default" not in self.endpoints and cert is not None:
self.endpoints["default"] = { "host":cert.get_issuer().CN,
dhost = cert.get_issuer().CN
if dhost in RPC_CERT_CN_REMAPS:
dhost = RPC_CERT_CN_REMAPS[dhost]
self.endpoints["default"] = { "host":dhost,
"port":443,
"path":"/protogeni/xmlrpc", }
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment