GH-1202 rebuild SSL certs on start on OSX

This commit is contained in:
Petr Mrázek
2015-09-29 00:48:33 +02:00
parent 12b14c3400
commit 22c0d5cf46
4 changed files with 137 additions and 0 deletions

View File

@@ -283,10 +283,15 @@ MultiMC::~MultiMC()
}
}
#ifdef Q_OS_MAC
#include "CertWorkaround.h"
#endif
void MultiMC::initSSL()
{
#ifdef Q_OS_MAC
Q_INIT_RESOURCE(certs);
RebuildQtCertificates();
QFile equifaxFile(":/certs/Equifax_Secure_Certificate_Authority.pem");
equifaxFile.open(QIODevice::ReadOnly);
QSslCertificate equifaxCert(equifaxFile.readAll(), QSsl::Pem);