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

[MacOS] Incompatibility issues with latest p12 certificate #193

Open
NicklasWallgren opened this issue Feb 11, 2024 · 6 comments
Open

[MacOS] Incompatibility issues with latest p12 certificate #193

NicklasWallgren opened this issue Feb 11, 2024 · 6 comments

Comments

@NicklasWallgren
Copy link
Collaborator

The latest p12 certificate for the test environment does not work on MacOS due to an issue with rust-native-tls.

See sfackler/rust-native-tls#19

Could not create a client from the supplied config: Pkcs12Error { source: reqwest::Error { kind: Builder, source: Error { code: -25264, message: "MAC verification failed during PKCS12 import (wrong password?)" } } }
@dlq84
Copy link
Contributor

dlq84 commented Feb 12, 2024

I think trying native-tls-vendored may fix this, can't confirm since I'm not on Mac. Otherwise I could spend time making this work with rustls instead.

@NicklasWallgren
Copy link
Collaborator Author

native-tls-vendored

I didn't work with native-tls-vendored either unfortunately.

@dlq84
Copy link
Contributor

dlq84 commented Feb 15, 2024

Alright, thank you. I'll look into it at some point.

@christian-smith
Copy link

I think a workaround is to generate a legacy key:

https://stackoverflow.com/questions/70431528/mac-verification-failed-during-pkcs12-import-wrong-password-azure-devops

@dlq84
Copy link
Contributor

dlq84 commented Mar 17, 2024

Can you guys try the advice found in the openssl-sys crate:

image

Source: https://docs.rs/crate/openssl-sys/0.9.36

I've had 0 luck on trying to use pure rust to parse the new testcert.p12 too, I've tried the p12 and the cms crate so far but both of them says the format is invalid.

@NicklasWallgren
Copy link
Collaborator Author

I'm currently running openssl@3+ and it doesn't work unfortunately. Mac users are forced to use the legacy format until further notice 😞

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

No branches or pull requests

3 participants