Closed jackchenjc closed 10 months ago
Not sure if we should check whether the s.cfg.UserKey
has value before invoking uapolicy.Asymmetric()
.
Looks good. Does https://github.com/gopcua/opcua/blob/main/examples/crypto/crypto.go need to be updated?
NewUserTokenSignature should use the RSA key associated with AuthCertificate to sign the user token signature. Tested with Prosys OPC UA Simulation Server.
Closes #671