Branch: Tag:

2017-11-07

2017-11-07 09:35:59 by Anders Johansson <anders@roxen.com>

CertificateKeyChoiceVariable: Show source paths

2792:    }    if (tmp) {    res += ({ -  sprintf("<td style='white-space:nowrap'>" + +  sprintf("<td style='white-space:nowrap;vertical-align:top'>" +    LOC_C(0, "Issued by") +    "</td><td>%s</td>",    Roxen.html_encode_string(tmp)),
2825:    sprintf("<td>%s</td><td>%s</td>", LOC_C(0, "Expires"), tmp),    });    } +  +  mapping keypair_metadata = CertDB.get_keypair_metadata(keypair_id); +  +  array(string) paths = keypair_metadata->certs->pem_path + +  ({ keypair_metadata->key->pem_path }); +  if (sizeof(paths)) { +  paths = Array.uniq(paths); +  res += ({ +  sprintf("<td style='vertical-align:top'>%s</td><td><tt>%s</tt></td>", +  LOC_C(0, "Path(s)"), +  map(paths, Roxen.html_encode_string) * "</tt><br/><tt>") +  });    } -  +  }       return res;    }