security(useragent): validate server cert fingerprint and host instead of accepting all certificates #88
Reference in New Issue
Block a user
Delete Branch "check-uac-cerf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #37
I appreciate the effort, but sadly this is wrong solution.
So first of all, we pin based on root CA, not leaf CA.
This means that we check if signer that signed presented certificate by server is trusted by us.
So basically, we should check hash of signer, not hash of certificate itself.
Secondly, we just don't hash the whole certificate.
To preserve space,
webpkiin rust ecosystem doesn't store full certificate: it storesTrustAnchors. Those are just pubkey + expire and some more data.In conclusion, to make this correct, I am planning to use rust bindings in my branch.
https://docs.rs/webpki/latest/webpki/struct.TrustAnchor.html
Pull request closed