GH-1202 rebuild SSL certs on start on OSX
This commit is contained in:
parent
12b14c3400
commit
22c0d5cf46
4 changed files with 137 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue