gopcua / opcua

Native Go OPC-UA library
MIT License
829 stars 253 forks source link

feat: add support for AuthPrivateKey #681

Closed jackchenjc closed 10 months ago

jackchenjc commented 11 months ago

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

Closes #671

jackchenjc commented 11 months ago

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

kung-foo commented 10 months ago

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