Error while connecting to OPC UA Server with encrypted private key files in QT OPC UA Viewer example
-
Hi, I am testing the QT OPC UA Viewer example for security policy (Basic256Sha256) with encrypted private key.
I was able to connect to the OPC UA Server (Kepware OPC UA Server) with http://opcfoundation.org/UA/SecurityPolicy#None ,
and http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256 with private key (.pem) file and certificate (.der) file.However, with the encrypted private key, I couldn't connect to the OPC UA Server.
I expected me to get a signal using
" connect(mOpcUaClient, &QOpcUaClient::passwordForPrivateKeyRequired, this,&MainWindow::test34); "
when the client attempts to connect to the endpoint using encrypted private key (with the password).But it looks like the client doesn't proceed longer.
It's neither connected nor disconnected. It just stops.I made my encrypted private key refering to this document :
https://doc.qt.io/qt-6/qopcuakeypair.htmlI could encrypt and decrypt with QOpcUaKeyPair class, especially using
Signals void passphraseNeeded(QString &passphrase, int maximumLength, bool writeOperation) methid.So I guess it also should work with passwordForPrivateKeyRequired signal when I try to connect with encrypted private key and .der cert file.
Any ideas?