Skip to content
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

sdns:// cert pinning is incorrect #205

Closed
sfionov opened this issue Aug 22, 2023 · 0 comments
Closed

sdns:// cert pinning is incorrect #205

sfionov opened this issue Aug 22, 2023 · 0 comments

Comments

@sfionov
Copy link
Member

sfionov commented Aug 22, 2023

We now calculate hash of certificate:
echo | openssl s_client -connect 94.140.14.14:853 -servername dns.adguard-dns.com 2>/dev/null | openssl x509 -outform der | sha256sum

But in SDNS stamp spec it is TBSCertificate (1st member of Certificate structure), not just Certificate.
echo | openssl s_client -connect 94.140.14.14:853 -servername dns.adguard-dns.com 2>/dev/null | openssl x509 -outform der | openssl asn1parse -inform der -strparse +4 -noout -out - | sha256sum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants