Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.1
-
None
-
b9557296cb988c6007ed17f182a03c8205d5dffc
Description
If you try to open a PKCS12 file which does not contain a private key, QSslCertificate::importPkcs12 will crash. That function is not intended to open files which do not contain a private key, however a better behavior would be to return false in this case instead of crashing.
See attached for a self-contained example including PKCS12 file.