> // DEPRECATED, use Value::FindKey(key) instead.
atom/common/native_mate_converters/net_converter.cc
v8::Isolate* isolate,
    v8::Local<v8::Value> val,
    scoped_refptr<net::X509Certificate>* out) {
  mate::Dictionary dict;
  if (!ConvertFromV8(isolate, val, &dict))
    return false;
  std::string data;
  dict.Get("data", &data);
  scoped_refptr<net::X509Certificate> leaf_cert;
  if (!CertFromData(data, &leaf_cert))
    return false;
  scoped_refptr<net::X509Certificate> issuer_cert;
  if (dict.Get("issuerCert", &issuer_cert)) {
    std::vector<bssl::UniquePtr<CRYPTO_BUFFER>> intermediates;
    intermediates.push_back(
        net::x509_util::DupCryptoBuffer(issuer_cert->cert_buffer()));
    auto cert = net::X509Certificate::CreateFromBuffer(
        net::x509_util::DupCryptoBuffer(leaf_cert->cert_buffer()),
        std::move(intermediates));
    if (!cert)
      return false;
    *out = cert;
  } else {
    *out = leaf_cert;
  }
  return true;
}
v8::Local<v8::Value> Converter<net::CertPrincipal>::ToV8(