mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #1839] [CLOSED] Openssl v3 compability issues with pkcs8 key #2643
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#2643
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?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/1839
Author: @darnuria
Created: 11/26/2022
Status: ❌ Closed
Base:
main← Head:opensslv3/compat/pkcs8📝 Commits (2)
3d22cddAdd Pkcs8 for reading RSA key in Pem format.d4103fbDocument explicitly format accepted byrustls side read_key.📊 Changes
1 file changed (+27 additions, -8 deletions)
View changed files
📝
crates/proto/src/rustls/tls_server.rs(+27 -8)📄 Description
Review note: I am really outside of my comfort zone on this one, I am not by any mean an openSSL expert, it's just what I found by poking around error in CI and new OpenSSL v3 on my computer.
Hello I investigated failure In CI and tried to regenerate test certificate with openSSL v3
OpenSSL 3.0.7 1 Nov 2022 (Library: OpenSSL 3.0.7 1 Nov 2022on my Linux.So I did this changes to
script/gen_certs.shsince just don't worked with openssl v3.What it does?
-verifybecause It generated no sense error of unknown algorithm (not sure if it was wise)genpkeysincegenrsais marked deprecatedAnd later:
And get this error:
After investigation I found that openssl V3
genrsaandgenpkeyissue now pkcs8 pem RSA pem key there is an option to revert that fromopenssl-genrsaman:So I went down to the function causing problems with the CI after regenerating certificates rustls side.
First I wondered that it was problem
rustls_pemfileside so I opened first a PR there: https://github.com/rustls/pemfile/pull/10 but, afterthought I closed it in favor of this PR.CI ISSUEs still not solved:
For Openssl side I suppose the problem is that the cert/key created with an older Openssl and read with a newer cause some issue I have to dig on this point, just regenerating cert/key/ is not satisfying.
And rustls side it's something to be 'future' proof by accepting pkcs8 key (what this PR try to do)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.