WOLFRAM SYSTEM MODELER
SecuredSecured communication configuration |
![]() |
SystemModel["OPCUA.Configuration.Security.Secured"]
Configuration block for setting up secured communication with the OPC UA server.
To use Secured
communication, an application instance certificate must be provided.
The subjectAltName
in the certificate must contain a URI
equal to the applicationUri
given in the Client instance.
If the useGeneratedApplicationCertificate
parameter is set to true
, the simulation will generate an application certificate automatically.
The subject
will contain:
CN
set to "Wolfram OPCUA Library"
O
set from the organization
parameterThe subjectAltName
will contain:
URI
set from the applicationUri
parameter in the Client instance
The generated certificate will have an expiration date expirInDays
days from the generation date, and it will be saved in the directory specified by applicationCertificateDirectory
. The certificate will be regenerated whenever applicationUri
, organization
or expireInDays
changes.
To use a custom application certificate, set the useGeneratedApplicationCertificate
parameter to false
and specify the certifcate and key using the following parameters:
applicationCertificatePath
: path to the certificate fileapplicationPrivateKeyPath
: path to the private key fileThe private key has to be passwordless.
By default, all server certificates are accepted.
To perform verification of server certificates, set the trustedCertificatePath
parameter to the trusted server certificate or to the CA certificate that was used to sign the server certificate.
If the certificate given by the trustedCertificatePath
parameter is a CA certificate, the corresponding certificate revocation list must be proved by the revocationListPath
parameter (otherwise certificate verification will fail).
securityPolicy |
Value: Type: UASecurityPolicy Description: The OPC UA security policy to use for the communication with the server |
---|---|
securityMode |
Value: Type: UASecurityMode Description: The OPC UA security mode to use for the communication with the server |
useGeneratedApplicationCertificate |
Value: true Type: Boolean Description: If true an application certificate is generated matching the applicationUri specified in the Client |
organization |
Value: "" Type: String Description: The name of the organization that executes this application instance |
expireInDays |
Value: 365 Type: Integer Description: The expiration time (in days) of the generated certificate |
applicationCertificateDirectory |
Value: "" Type: String Description: Path to the directory where the generated certificate should be saved |
applicationCertificatePath |
Value: "" Type: String Description: Path to the certificate for this application instance |
applicationPrivateKeyPath |
Value: "" Type: String Description: Path to the corresponding private key |
trustedCertificatePath |
Value: "" Type: String Description: Path to the trusted server certificate or CA certificate (if empty all server certificates will be accepted) |
revocationListPath |
Value: "" Type: String Description: Path to the certificate revocation list, required if trustedCertificatePath is a CA certificate |
![]() |
outID |
Type: ExternalIDOutput Description: Output connector for external IDs |
---|---|---|
![]() |
inID |
Type: ExternalIDInput Description: Input connector for external IDs |