summaryrefslogtreecommitdiff
path: root/app/designs/identity/cert_fingerprints_by_expiry.js
blob: 995219b8c36b67975375c5d3beb9708ca2a8294e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function(doc) {
  if (doc.type != 'Identity') {
    return;
  }
  if (typeof doc.cert_fingerprints === "object") {
    for (fp in doc.cert_fingerprints) {
      if (doc.cert_fingerprints.hasOwnProperty(fp)) {
        emit(doc.cert_fingerprints[fp], fp);
      }
    }
  }
}