A high-performance and open-source OPC-UA stack implementation.
Note: this is just a stack implementation (channels, serialization, structures, security). If you're looking to build a client or server, try the OPC-UA SDK.
Certificate validation is implemented in the server stack and so upon running the ClientServerExample for the first time you'll probably see a stack trace containing this exception:
Caused by: com.inductiveautomation.opcua.stack.core.UaException: security checks failed
at com.inductiveautomation.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler.onError(UaTcpClientAcknowledgeHandler.java:162)
at com.inductiveautomation.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler.decode(UaTcpClientAcknowledgeHandler.java:89)
You'll now find a "security" folder in whatever you've configured your working directory as when running the example. Inside that folder, you should find "rejected", "revocation", and "trusted" folders. Move the client certificate in the "rejected" folder to the "trusted" folder and run the example again.
Snapshots are available from the Sonatype repository:
<repository>
<id>oss-sonatype</id>
<name>oss-sonatype</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
Release versions will be available from Maven Central and won't require an explicit repository definition.
<dependency>
<groupId>com.inductiveautomation.opcua</groupId>
<artifactId>stack-server</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.inductiveautomation.opcua</groupId>
<artifactId>stack-client</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
- OPC-UA TCP
- OPC-UA Binary
- None
- Basic128Rsa15
- Basic256
- Basic256Sha256
- SOAP/HTTP/HTTPS Transport
- XML Data Encoding
Contact [email protected] for more information.
Apache License, Version 2.0