Pong
June 8th 2014, QSslSocket
← June 8th 2014 SSL Certificates and Private Keys | ● | June 9th 2014 SSL Server with QTcpServer →
When creating a SSL socket with Qt, the two above PEM files and the SSL protocol version need to be passed to the socket on the server side:
QSslSocket *socket = new QSsLSocket;
socket->setProtocol(QSsl::TlsV1);
socket->setPrivateKey("key.pem");
socket->setLocalCertificate("cert.pem");
socket->setProtocol(QSsl::TlsV1);
socket->setPrivateKey("key.pem");
socket->setLocalCertificate("cert.pem");
← June 8th 2014 SSL Certificates and Private Keys | ● | June 9th 2014 SSL Server with QTcpServer →