QSslCertificate::importPkcs12 fails to parse PFX file
<p>I'm trying to unpack my pkcs12 file in my Qt application - but having no luck. I'm building a <strong>Qt Console App (GUI disabled)</strong>. </p>

<p>(I've followed this guide: <a href="https://github.com/trueos/sysadm-ui-qt/blob/master/src-qt5/gui_client/SSLNotes.txt">https://github.com/trueos/sysadm-ui-qt/blob/master/src-qt5/gui_client/SSLNotes.txt</a>)</p>

<p><strong>Pkcs12 creation commands:</strong></p>

<pre><code>"openssl req -newkey rsa:2048 -nodes -keyout test_key.pem"
"openssl req -key test_key -new -x509 -out test_crt.crt"
"openssl pkcs12 -inkey test_key.pem -in test_crt.crt -export -passout stdin -out new.pfx"
</code></pre>

<p><strong>Qt Code:</strong></p>

<pre><code>QString password="1234";
QFile pkcs("/Users/test/Desktop/certs/new.pfx");
pkcs.open(QFile::ReadOnly);
QSslKey key;
QSslCertificate cert;
QList&lt;QSslCertificate&gt; imported_certs;
static bool import=QSslCertificate::importPkcs12(&amp;pkcs,&amp;key,&amp;cert,&amp;imported_certs,QByteArray::fromStdString(password.toStdString()));

pkcs.close();
qDebug()&lt;&lt;import;
</code></pre>

<p>Manually extracting the key and the file have worked using openssl commands. </p>

<p><strong>Error Message:</strong></p>

<pre><code>"Unimplemented Code."
</code></pre>

<p>Any ideas?</p>