Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error while connecting to OPC UA Server with encrypted private key files in QT OPC UA Viewer example
Forum Updated to NodeBB v4.3 + New Features

Error while connecting to OPC UA Server with encrypted private key files in QT OPC UA Viewer example

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 139 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hsjeong
    wrote on last edited by
    #1

    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.

    sc2.png

    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.html

    I 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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved