You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this issue is open for long but I wanted to serve a solution.
You have to trust the certificate that server provides. For this you should enable tls for client too with the same certificate the server has. Here is an example:
let server = Server::builder().with_io("127.0.0.1:4585").unwrap().with_tls((Path::new("certificates/cert.pem"),Path::new("certificates/key.pem"),)).unwrap().start().unwrap();let client = Client::builder().with_io("127.0.0.1:0").unwrap().with_tls(Path::new("certificates/cert.pem")).unwrap().start().unwrap();
Be careful I gave same certificate for client and server but only server has private key.
Run examples code and generate pem
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=localhost"
use this pems run this example:
https://github.com/aws/s2n-quic/tree/main/examples/rustls-provider
error:
The text was updated successfully, but these errors were encountered: