QSslKey: Unsupported encryption cipher OID: "2.16.840.1.101.3.4.1.42"
Unsolved
General and Desktop
-
Hello everyone
I have updated Qt from 6.7.2 to 6.7.3 and got an issue with websockets.
I am using the next code
QFile certFile("1.pem"); QFile keyFile("1.key"); QFile CAFile("1-ca.pem"); certFile.open(QIODevice::ReadOnly); keyFile.open(QIODevice::ReadOnly); CAFile.open(QIODevice::ReadOnly); QSslCertificate certificate(&certFile, QSsl::Pem); QSslCertificate CAcertificate(&CAFile, QSsl::Pem); QSslKey sslKey(&keyFile, QSsl::Rsa, QSsl::Pem, QSsl::PrivateKey, "123456789"); sslConfiguration.setPeerVerifyMode(QSslSocket::VerifyNone); sslConfiguration.setLocalCertificate(certificate); sslConfiguration.setPrivateKey(sslKey); sslConfiguration.addCaCertificate(CAcertificate); webSocket.setSslConfiguration(sslConfiguration); webSocket.open("wss_url");
and after the update, I got the error:
QSslKey: Unsupported encryption cipher OID: "2.16.840.1.101.3.4.1.42" File a bug report to Qt (include the line above). Cannot provide a certificate with no key
I'm using msvc2022_64 and MSBuild version 17.11.9+a69bbaaf5
p.s with 6.8.0 and 6.8.1 same behavior -
@i-sorochan said in QSslKey: Unsupported encryption cipher OID: "2.16.840.1.101.3.4.1.42":
File a bug report to Qt (include the line above).
And the solution is already given in the error message.