If you’re using OpenSSL 3.x to export your P12 certificate for iOS, you may encounter this error when compiling, even if you’re 100% sure export password is correct:
UserError: security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)
Correct 'iosDevP12Password' or 'iosDistP12Password' in voltbuilder.json.
OpenSSL 3.x changed its default algorithm in pkcs12
, which isn’t currently compatible with security frameworks in macOS/iOS
To solve you can:
- Downgrade to OpenSSL 1.x
- Use
-legacy
option (make sure you have legacy libraries in your OpenSSL path)
Hope it helps
D.