AnsiC - ActivateSession|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
AnsiC - ActivateSession
Avatar
Sheldon Reddy
Member
Members
Forum Posts: 3
Member Since:
04/20/2017
sp_UserOfflineSmall Offline
1
08/03/2017 - 00:10
sp_Permalink sp_Print

Hi, 

 

I have skimmed through the .NET sample applications and found that in the session.cs file, the clientSignature is achieved as follows:

// create the client signature.
byte[] dataToSign = Utils.Append(endpoint.ServerCertificate, m_serverNonce);
SignatureData clientSignature = SecurityPolicies.Sign(m_instanceCertificate, endpoint.SecurityPolicyUri, dataToSign);

I wish to perform the same using the AnsiC stack but can't seem to find a function to assist me with line2 above. 

Has anyone performed this before?

The OPC UA Specification Part4 PAge 50 shows the ActivateSession() function requires a clientSignature in order to activate the session.

 

Please advise, been stuck with this for a while now.

Thanks 

Sheldon

Avatar
Guest
Guests
2
08/04/2017 - 01:17
sp_Permalink sp_Print

I believe the moderator of the stack has answered your question on github.

Avatar
Sheldon Reddy
Member
Members
Forum Posts: 3
Member Since:
04/20/2017
sp_UserOfflineSmall Offline
3
08/04/2017 - 01:30
sp_Permalink sp_Print

Hi Karl, 

 

I have responded accordingly. I will pursue the issue there. And will post and update here once resolved (for others to reference in future) and close this thread.

 

Thanks

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 30
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1353
Posts: 4589