Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Add more detail attributes for certificate-error #25

Merged
merged 2 commits into from
Jul 13, 2016

Conversation

darkdh
Copy link
Member

@darkdh darkdh commented Jul 12, 2016

@darkdh
Copy link
Member Author

darkdh commented Jul 12, 2016

If this patch is need, I will add this new interface to document files on the next commit.

@bbondy
Copy link
Member

bbondy commented Jul 12, 2016

please also upstream this to electron/electron

@diracdeltas
Copy link
Member

++ thank you

@@ -46,6 +46,12 @@ v8::Local<v8::Value> Converter<scoped_refptr<net::X509Certificate>>::ToV8(
encoded_data.size()).ToLocalChecked();
dict.Set("data", buffer);
dict.Set("issuerName", val->issuer().GetDisplayName());
dict.Set("subjectName", val->subject().GetDisplayName());
dict.Set("serialNum", val->serial_number());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good, but any special reason we are abbreviating this? If it matches up to something else that's great, but otherwise it seems like it could lead to unexpected null results

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. It would be better if we change it to serialNumber

@bridiver
Copy link
Collaborator

thanks!

@bridiver bridiver merged this pull request into brave:master Jul 13, 2016
@darkdh darkdh deleted the cert_detail branch July 13, 2016 14:12
bbondy added a commit that referenced this pull request Jul 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants