Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
osie
Commits
bc0c17eb
Commit
bc0c17eb
authored
Oct 17, 2022
by
Ivan Tyagov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set x509 certificates policy on same OPC Ua port (default one).
parent
c71159c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
coupler/opc-ua-server/server.c
coupler/opc-ua-server/server.c
+4
-2
No files found.
coupler/opc-ua-server/server.c
View file @
bc0c17eb
...
...
@@ -91,7 +91,9 @@ int main(int argc, char **argv)
char
serverUrlBuffer
[
1
][
512
];
server
=
UA_Server_new
();
UA_ServerConfig_setMinimal
(
UA_Server_getConfig
(
server
),
OPC_UA_PORT
,
NULL
);
if
(
!
ENABLE_X509
){
UA_ServerConfig_setMinimal
(
UA_Server_getConfig
(
server
),
OPC_UA_PORT
,
NULL
);
}
UA_ServerConfig
*
config
=
UA_Server_getConfig
(
server
);
/* Disable binding to all specified interface until this feature(open62541 commit:16467fb5a9d2f9458e55071a2ec07bc68e1b960e)
...
...
@@ -157,7 +159,7 @@ int main(int argc, char **argv)
UA_ByteString
*
revocationList
=
NULL
;
size_t
revocationListSize
=
0
;
UA_StatusCode
retval
=
UA_ServerConfig_setDefaultWithSecurityPolicies
(
config
,
4841
,
// XXX: why not use 4840 ?
UA_ServerConfig_setDefaultWithSecurityPolicies
(
config
,
OPC_UA_PORT
,
&
certificate
,
&
privateKey
,
trustList
,
trustListSize
,
issuerList
,
issuerListSize
,
...
...
Ivan Tyagov
@Tyagov
mentioned in commit
837b1b46
·
Nov 02, 2022
mentioned in commit
837b1b46
mentioned in commit 837b1b4686c52ed07badaec06248b640bc7f5eee
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment