-
Notifications
You must be signed in to change notification settings - Fork 222
Add DNS oracle protocol #917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
shargon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it's better to define the dns server, and make a dns query, instead of http query
We need DNS over HTTPS. |
Then it's DoH no Dns, we should rename the oracle protocol |
| CertificatePublicKey key = new() | ||
| { | ||
| Algorithm = cert.PublicKey.Oid?.FriendlyName ?? cert.PublicKey.Oid?.Value, | ||
| Encoded = Convert.ToBase64String(cert.GetPublicKey()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it's better to construct this object inside the try/catch clause, it's possible to throw CryptographicException during cert.GetPublicKey()
| client.DefaultRequestHeaders.Accept.Clear(); | ||
| client.DefaultRequestHeaders.Accept.ParseAdd("application/dns-json"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be moved to constructor
Summary
Testing