summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMartin Klos <martin.klos@basyskom.com>2021-01-04 16:10:15 +0100
committerMartin Klos <martin.klos@basyskom.com>2021-01-28 07:29:33 +0000
commit11451f6df6c44448deb826a0bd6125c648d603d0 (patch)
treea46560a3fe615dea912807fbfb045f1d38c55ca8 /examples
parentcbb659f95bdd99d8797863ad87a1af9d64285eb3 (diff)
Fix OPC UA viewer connection issues
Connection establishment failed because of missing certificate and wrong datatype in source Change-Id: I8db7a544e7a4c58ec7bf721d2834a5298c665526 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/opcua/opcuaviewer/CMakeLists.txt3
-rw-r--r--examples/opcua/opcuaviewer/pki/own/certs/opcuaviewer.derbin1610 -> 1148 bytes
2 files changed, 3 insertions, 0 deletions
diff --git a/examples/opcua/opcuaviewer/CMakeLists.txt b/examples/opcua/opcuaviewer/CMakeLists.txt
index 596ee78..28764b2 100644
--- a/examples/opcua/opcuaviewer/CMakeLists.txt
+++ b/examples/opcua/opcuaviewer/CMakeLists.txt
@@ -20,6 +20,9 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS OpcUa)
find_package(Qt6 COMPONENTS Widgets)
+file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/pki"
+ DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
+
qt_add_executable(opcuaviewer
certificatedialog.cpp certificatedialog.h certificatedialog.ui
main.cpp
diff --git a/examples/opcua/opcuaviewer/pki/own/certs/opcuaviewer.der b/examples/opcua/opcuaviewer/pki/own/certs/opcuaviewer.der
index 638b3b9..38d41ba 100644
--- a/examples/opcua/opcuaviewer/pki/own/certs/opcuaviewer.der
+++ b/examples/opcua/opcuaviewer/pki/own/certs/opcuaviewer.der
Binary files differ