Skip to content
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

feat: add support for AuthPrivateKey #681

Merged
merged 2 commits into from Sep 5, 2023
Merged

Conversation

jackchenjc
Copy link
Contributor

NewUserTokenSignature should use the RSA key associated with AuthCertificate to sign the user token signature. Tested with Prosys OPC UA Simulation Server.

Closes #671

NewUserTokenSignature should use the RSA key associated with AuthCertificate to sign the user token signature.
Tested with Prosys OPC UA Simulation Server.

Closes gopcua#671
@jackchenjc
Copy link
Contributor Author

Not sure if we should check whether the s.cfg.UserKey has value before invoking uapolicy.Asymmetric().

@kung-foo
Copy link
Member

Looks good. Does https://github.com/gopcua/opcua/blob/main/examples/crypto/crypto.go need to be updated?

@kung-foo kung-foo merged commit fd06ca1 into gopcua:main Sep 5, 2023
5 checks passed
@magiconair magiconair modified the milestones: v0.5.3, v0.5.2 Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to open a secure channel with AuthCertificate and different certificates
3 participants