Skip to content
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

native-tls tests fail on macOS Catalina #151

Closed
stepancheg opened this issue Mar 1, 2020 · 5 comments
Closed

native-tls tests fail on macOS Catalina #151

stepancheg opened this issue Mar 1, 2020 · 5 comments

Comments

@stepancheg
Copy link

$ cargo test
...
---- test::tests::server stdout ----
thread 'test::tests::server' panicked at 'Failure(Error { code: -67843, message: "The certificate was not trusted." })', src/test.rs:80:26


failures:
    test::tests::peer_certificate
    test::tests::server
    test::tests::server_pem
    test::tests::server_tls11_only
    test::tests::shutdown
    test::tests::tls_server_end_point

test result: FAILED. 7 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out
@sfackler
Copy link
Owner

sfackler commented Mar 3, 2020

We just need to regenerate the test certificate in accordance with Catalina's new requirements: https://support.apple.com/en-us/HT210176.

@stepancheg
Copy link
Author

Also, if native-tls can depend on the presence of openssl binary, this file can be used to generate everything on the fly: https://github.com/stepancheg/rust-tls-api/blob/master/api-test/src/openssl_test_key_gen.rs (this is copied from tokio-tls and made self-contained.)

@pimeys
Copy link

pimeys commented Aug 31, 2020

We've been hitting the same issue in Tiberius, where mac users are having the same error. Is there a workaround to fix this already?

@sfackler
Copy link
Owner

sfackler commented Sep 2, 2020

You need to regenerate your certificates in accordance with Catalina's new requirements: https://support.apple.com/en-us/HT210176

@sfackler sfackler mentioned this issue Sep 21, 2020
@colinre
Copy link

colinre commented Mar 26, 2024

Same issue now on Sonoma 14.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants