-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
PKCS12 Identity [mac verify failure] on legacy format #274
Comments
That looks like an issue with your OpenSSL installation - libproviders.so is part of OpenSSL 3.x and should be present on your system. |
I guess I need to install openssl manually. I'll try that and update this with results. Update: Another Update: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Normal(ErrorStack([Error { code: 587718764, library: "PKCS12 routines", function: "PKCS12_verify_mac", reason: "mac absent", file: "../crypto/pkcs12/p12_mutl.c", line: 157 }, Error { code: 587686001, library: "PKCS12 routines", function: "PKCS12_parse", reason: "mac verify failure", file: "../crypto/pkcs12/p12_kiss.c", line: 70 }]))', src/main.rs:20:61
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace |
Ignore the above, I reinstalled my system and get the following error: called `Result::unwrap()` on an `Err` value: Normal(ErrorStack([Error { code: 29360138
8, library: "PKCS12 routines", function: "PKCS12_verify_mac", reason: "mac absent", fi
le: "crypto/pkcs12/p12_mutl.c", line: 187 }, Error { code: 293601393, library: "PKCS12
routines", function: "PKCS12_parse", reason: "mac verify failure", file: "crypto/pkcs
12/p12_kiss.c", line: 71 }]))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace This is likely due to the PFX format being odd. |
mac verify failure
I'm struggling to get legacy PKCS12 pfx files to work on a server emulator I'm working on (check my repos for more details if you're interested).
I'm restricted to use a certain PFX file due to a client requirement.
Error:
Code:
Cargo.toml
Here are the commands I use to generate the certificates:
Any help, tips, or anything would be greatly appreciated. I'm hitting my head on the wall at this point. I've tried many different crates, and this one seemed to be the lowest level.
Please note the password I use when exporting to
.pfx
format is "" (nothing).The text was updated successfully, but these errors were encountered: