The KSSL KCM fails to save imported certificates to the user certificate store (without an error message either), as reported by multiple users in bug 342958.
The bug report lead to a workaround to manually creating the needed directory first, which makes the KCM work fine.
This patch fixes the reported bug by ensuring that the userDir directory has been created (using QDir::mkpath) before trying to save the certificates. Due to the KCM code layout (the KCM is in kdelibs4support) the relevant code is in KIO.