-
Notifications
You must be signed in to change notification settings - Fork 1k
Secure channel enhancements 2025 11 #3408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
opcfoundation-org
wants to merge
17
commits into
master
Choose a base branch
from
secure-channel-enhancements-2025-11
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
688e2b8
merged security changes
mrsuciu 45b07a2
Tailor SecurityPolicyUri for format expected in s_securityPolicyUriTo…
mrsuciu cfbebe7
Enhance security policy handling and key computation logic
mrsuciu 0477aba
Merge remote-tracking branch 'mr/eccSecurityChangesMerge'
randy-armstrong d0c6321
Merge SecurityEnhancements.
randy-armstrong a579c62
Add support for SessionTransferToken. Removed obsolete SoftwareCertif…
randy-armstrong e1dd311
Fix NonceLength for None.
randy-armstrong 9ecf7c9
Add support for RSA_DH, more fixes from IOP testings.
randy-armstrong 1ca156c
Finish implementation of SecureChannelEnhancements.
randy-armstrong a17b881
Merge branch 'master' of https://github.com/OPCFoundation/UA-.NETStan…
randy-armstrong 5dfb991
Merge branch 'master' into secure-channel-enhancements-2025-11
randy-armstrong 67f4b4b
Rename EccUtils.cs to CryptoUtils.cs
randy-armstrong 8528e7a
Address feedback from reviewers.
randy-armstrong 387ad76
Fix CoPilot flagged spelling errors.
randy-armstrong ee70b5d
Merge branch 'master' into secure-channel-enhancements-2025-11
randy-armstrong 6153098
Rename EccUtils to CryptoUtils
randy-armstrong dc0b110
Fix unit tests.
randy-armstrong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,23 @@ public static class Program | |
| /// <exception cref="ErrorExitException"></exception> | ||
| public static async Task Main(string[] args) | ||
| { | ||
| //foreach (var group in Enum.GetValues(typeof(RSADiffieHellmanGroup))) | ||
| //{ | ||
| // var alice = RSADiffieHellman.Create((RSADiffieHellmanGroup)group); | ||
| // var bob = RSADiffieHellman.Create((RSADiffieHellmanGroup)group); | ||
|
|
||
| // var aliceNonce = alice.GetNonce(); | ||
| // var bobNonce = bob.GetNonce(); | ||
|
|
||
| // var bobAtAlice = RSADiffieHellman.Create(bobNonce); | ||
| // var aliceAtBob = RSADiffieHellman.Create(aliceNonce); | ||
|
|
||
| // var secret1 = alice.DeriveRawSecretAgreement(bobAtAlice); | ||
| // CryptoTrace.WriteLine(CryptoTrace.KeyToString(secret1)); | ||
| // var secret2 = bob.DeriveRawSecretAgreement(aliceAtBob); | ||
| // CryptoTrace.WriteLine(CryptoTrace.KeyToString(secret2)); | ||
| //} | ||
|
|
||
| Console.WriteLine("OPC UA Console Reference Client"); | ||
|
|
||
| Console.WriteLine( | ||
|
|
@@ -75,8 +92,8 @@ public static async Task Main(string[] args) | |
| byte[] userpassword = null; | ||
| string userCertificateThumbprint = null; | ||
| byte[] userCertificatePassword = null; | ||
| bool logConsole = false; | ||
| bool appLog = false; | ||
| bool logConsole = true; | ||
| bool appLog = true; | ||
| bool fileLog = false; | ||
| bool renewCertificate = false; | ||
| bool loadTypes = false; | ||
|
|
@@ -333,7 +350,7 @@ public static async Task Main(string[] args) | |
| logConsole, | ||
| fileLog, | ||
| appLog, | ||
| LogLevel.Information); | ||
| LogLevel.Warning); | ||
|
|
||
| // delete old certificate | ||
| if (renewCertificate) | ||
|
|
@@ -370,6 +387,14 @@ await application.DeleteApplicationInstanceCertificateAsync() | |
| CancellationToken ct = quitCTS.Token; | ||
| ManualResetEvent quitEvent = ConsoleUtils.CtrlCHandler(quitCTS); | ||
|
|
||
| // insert security tester. | ||
| var tester = new SecurityTestClient.RunTest(config, telemetry); | ||
|
||
|
|
||
| if (await tester.RunAsync(quitEvent, ct).ConfigureAwait(false)) | ||
| { | ||
| return; | ||
| } | ||
|
|
||
| var userIdentity = new UserIdentity(); | ||
|
|
||
| // set user identity of type username/pw | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove