[Question] Reference implementation of client side Secure connection with the server #1545
jchirantan
started this conversation in
General
Replies: 1 comment
-
You've got it right, there's not much to it. OpcUaClient client =
OpcUaClient.create(
"opc.tcp://milo.digitalpetri.com:62541/milo",
endpoints -> endpoints.stream().findFirst(),
cfg -> {},
cfg -> cfg.setIdentityProvider(new UsernameProvider("User", "password")));
client.connect();
DateTime currentTime =
client.getAddressSpace().getServerNode().getServerStatus().getCurrentTime();
System.out.println("Current time: " + currentTime);
client.disconnect(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @kevinherron,
Is there any reference implementation, guide, or at least some tips on how to establish a certificate-based secure connection and username/password-based connection with a server using the Eclipse Milo client?
I searched for it and found that UsernameProvider can be used to establish username/password-based connections and X509IdentityProvider can be used for certificate-based connections.
Is this right?
Also, can you provide some examples or documentation on how to use these APIs correctly for a secure connection?
Thanks,
Chirantan
Beta Was this translation helpful? Give feedback.
All reactions