(certificateObj)
| 25 | } |
| 26 | |
| 27 | function getUris (certificateObj) { |
| 28 | const uris = [] |
| 29 | if (certificateObj && certificateObj.subjectaltname) { |
| 30 | certificateObj.subjectaltname.replace(/URI:([^, ]+)/g, function (match, uri) { |
| 31 | return uris.push(uri) |
| 32 | }) |
| 33 | } |
| 34 | return uris |
| 35 | } |
| 36 | |
| 37 | export function verifyKey (certificateObj, uri, profile, contentType, callback) { |
| 38 | const graph = new Graph() |