mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-24 18:55:55 +03:00
[GH-ISSUE #180] When *ring* feature is enabled, use it for RSA and other supported DNSSec proofs #384
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#384
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @bluejekyll on GitHub (Aug 24, 2017).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/180
As of now, all RSA and ECDSA proofs are performed with OpenSSL. It would be good to remove the dependency on OpenSSL entirely but allow RSA to be proved with the ring library.
@briansmith commented on GitHub (Sep 22, 2017):
I started working on this in #194, #195, #196, and #198.
I found that
create_sig0_ready_client,test_rrset_tbs,create_secure_example,test_sign_and_verify_message_sig0(), andtest_sign_and_verify_rrset()are still generating their own private keys, which makes it hard to adapt them to work with ring, since ring doesn't do keygen itself. keygen is really a server-side feature, not a client-side feature, so it would be better to eliminate the need for keygen in these client-side tests. However, I probably won't have time to do that conversion myself.However, once that conversion is done, I will be able to finish the work to make the entire client side (verification side) work with ring, including RSA, ECDSA, Ed25519.
Note that ring will reject small public RSA keys (less than 2048 bits), but I think that this is the best behavior anyway. People who want legacy stuff to work can use legacy crypto libraries.
@briansmith commented on GitHub (Sep 22, 2017):
Also #199.
@briansmith commented on GitHub (Sep 22, 2017):
Removing key generation from the tests is already filed as a separate issue: #134.
@briansmith commented on GitHub (Sep 23, 2017):
Now also RSA verification: PR #203.
@briansmith commented on GitHub (Sep 24, 2017):
Also TrustAnchor: #204.
@briansmith commented on GitHub (Sep 24, 2017):
Ideally a ring-enabled client would build and be testable without OpenSSL. One way of accelerating that process is by implementing the change in #205, which proposes moving signing/private-key operations to the server crate and using pregenerated responses for testing signature verification in the client crate. IMO it makes more sense to do this now than to just fix #134, because keygen isn't the only server-specific functionality that has OpenSSL dependencies, and because #205 seems like the right thing to do, long-term.
@briansmith commented on GitHub (Oct 24, 2017):
This was done and this should be closed. #134 can track making the tests work when ring is used and OpenSSL isn't available.
@briansmith commented on GitHub (May 31, 2018):
ring now has ECDSA signing support, so ECDSA signing should be made to use ring when ring is enabled: https://github.com/briansmith/ring/issues/207#issuecomment-393662940
@bluejekyll commented on GitHub (May 31, 2018):
I just saw that land! Awesome!
@bluejekyll commented on GitHub (Sep 23, 2018):
This should be relatively straightforward to implement now. I think it's just the RSA variants that need to be added to the KeyPair at this point.