-
Notifications
You must be signed in to change notification settings - Fork 69
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
generate-certificate.sh with OpenSSL v3.3.0 #76
Comments
I'm upgrading to v3.3.1 now. |
Same. Thanks. |
On my macOS machine, I have installed OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024) from homebrew, but it works fine:
|
I'm using homebrew 3.3.1 too on Fedora Workstation 40. Weird. |
Solved it. https://github.com/search?q=repo%3Aopenssl%2Fopenssl%20extendedKeyUsage&type=code Otherwise we default to: Is there any reason this should macOS specific? Thanks. |
Misread. Not solved. |
The reason I got to this script was that I was running the example with a commercial cert:
|
Ah, figured it out. It writes all the files to We should update that to write out in |
Even with those I get:
|
It seems |
I think we can probably replace this whole |
Yeah, was just reading that:
|
Is |
@ghenry For an async tokio project I suspect this repo's examples are best. More broadly there are a number of helpful/well-maintained examples in the core Rustls repo but they aren't using Tokio: https://github.com/rustls/rustls/tree/main/examples |
Thanks. Yes, I was looking at the |
Indeed, it is quite low-level.
Cool! In case you haven't seen it yet we also have rustls-ffi for offering native C bindings to the Rustls project. Depending on situation that might be helpful for your project as well. |
|
Thanks! I'll definitely have a read of their techniques. Although, the book is about moving a C project to Rust and exploring which parts make sense to leave as-is because a Rust crate might be FFI-ing C or too new or too much Feel free to close this now. I'm really glad I spent time trying to get this working as that has improved it and introduced me to everyone here! |
Ahh ok :-)
Thanks for filing the issue. I'll close this once #77 lands and then separately will look at replacing the crufty cert gen shell script with some new Rust. Good luck with your book. Looking forward to reading it! |
Maybe by the end it could be the right way to go. That's the point of exploring all this :-)
Thank you. Much appreciated! |
Took a quick peek at this. The However, we do have some hardcoded test certs in Closing this for now on the basis of the fix in #77 Thanks! |
Hi all,
Looking to run the examples and obviously need to generate a cert, but getting:
This my local setup or something with OpenSSL v3?
Thanks.
The text was updated successfully, but these errors were encountered: