OPCFoundation / UA-Java-Legacy

This repository is provided by OPC Foundation as legacy support for an Java version for OPC UA.
https://github.com/OPCFoundation/UA-.NETStandard
Other
354 stars 226 forks source link

Server authentication using X509IdentityToken #201

Open dreampangari opened 4 years ago

dreampangari commented 4 years ago

Hi Team @jouniaro , I want to connect server using certificate and private key authentication .Do you have an example which calls activate session with X509IdentityToken and SignatureData? To do this I am calling createX509IdentityToken method which requires one of parameter userTokenSignature (SignatureData) . So had tried to create SignatureData which requires private key for which getting cast exception PrivKey to PrivateKey.