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

PKCS#12 import fails with password verify error, try again #617

Open
jpmorrison opened this issue Nov 26, 2024 · 0 comments
Open

PKCS#12 import fails with password verify error, try again #617

jpmorrison opened this issue Nov 26, 2024 · 0 comments

Comments

@jpmorrison
Copy link

PKCS#12/PFX import fails with a a password error if the PFX has no MAC.

The password is correct so this error is confusing. The issuer/CA was Sectigo - sorry I don't know if that's their default export format or if someone picked an obscure format before getting it to me.

I tried XCA 2.4.0 and 2.8.0. Win64.msi

older openssl verisons fail with Mac verify error: invalid password? but work with -nomacver

openssl 3.0.12 works without -nomacver but prints a warning

$ openssl version
OpenSSL 3.0.12 24 Oct 2023 (Library: OpenSSL 3.0.12 24 Oct 2023)

$ openssl pkcs12 -info -in in.pfx -noenc -passin file:in.txt
Warning: MAC is absent!
PKCS7 Data
Certificate bag
Bag Attributes
    localKeyID: XX XX 
subject=CN = foo.com
issuer=C = GB, ST = Greater Manchester, L = Salford, O = Sectigo Limited, CN = Sectigo RSA Domain Validation Secure Server CA
-----BEGIN CERTIFICATE-----
xxx
-----END CERTIFICATE-----
PKCS7 Data
Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 2048
Bag Attributes
    localKeyID: XX XX 
Key Attributes: <No Attributes>
-----BEGIN PRIVATE KEY-----
xxx
-----END PRIVATE KEY-----
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

1 participant