Open 641i130 opened 1 year ago
That looks like an issue with your OpenSSL installation - libproviders.so is part of OpenSSL 3.x and should be present on your system.
pacman -Qi openssl
Name : openssl
Version : 3.1.1-1
Description : The Open Source toolkit for Secure Sockets Layer and Transport Layer Security
Architecture : x86_64
URL : https://www.openssl.org
Licenses : Apache
Groups : None
Provides : libcrypto.so=3-64 libssl.so=3-64
Depends On : glibc
Optional Deps : ca-certificates [installed]
perl [installed]
Required By : bind capnproto coreutils cryptsetup curl dotnet-runtime dotnet-runtime-6.0
efitools elinks git gst-plugins-bad guile1.8 i2pd john kmod ldns lib32-openssl
libarchive libevent libgit2 libimobiledevice libsasl libshout libssh libssh2
libtpms libvncserver libwebsockets libzip lynx minizip-ng mixxx mtxclient neon
nginx nmap nodejs ntp openssh openvpn opusfile ostree pkcs11-helper polyphone
ppp python qpdf rsync ruby s-nail socat spice-gtk sqlcipher srt sudo swtpm
systemd telegram-desktop tensorflow testdisk tpm2-tss vpnc w3m wpa_supplicant
x11vnc xmlsec
Optional For : csound
Conflicts With : None
Replaces : openssl-perl openssl-doc
Installed Size : 11.44 MiB
Packager : Pierre Schmitz <pierre@archlinux.org>
Build Date : Tue 30 May 2023 11:44:23 AM CDT
Install Date : Tue 27 Jun 2023 11:28:14 PM CDT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
I guess I need to install openssl manually. I'll try that and update this with results.
Update:
After installing openssl manually, (https://www.openssl.org/source/openssl-3.1.1.tar.gz) no change has been made. The file libproviders.so
still isn't found.
Another Update: Trying this on an ubuntu system, I get this error (the libproviders issue seems to be resolved).
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).