Authentication

Username/password and certificate authentication are supported. Anonymous/no authentication is also supported.

Username/password authentication can only be used when certificate authentication is inactive, i.e., if all of username, user_cert_path, and user_private_key_path are specified, the OPC-UA transport will assume that the user wants to use certificate authentication and ignore the username option.

Certificate user authentication will only be active if both user_cert_path and user_private_key_path are specified and nonempty. The user_cert_password option can be omitted if the private key at user_private_key_path is not password-protected.

Anonymous/no authentication is also possible. To remove authentication, remove any authentication fields (username, password, user_cert_path, user_cert_password, user_private_key_path) from the options object.