AvensorOPC Guide Sections
AvensorOPC Configurations
All the configurations below refer to the file custom-config.properties which is located at
C:\ProgramData\AvensorOPC\config\custom-config.properties.
Specify the OPC UA Server Certificate Validity In Years
AvensorOPC by default will create a pfx certificate for the OPC UA server automatically. The default validity of the certificate is 50 years.
Re-configuring the validity requires the creation of a new certificate.The OPC UA clients who have already configured also need to accept the new certificate
- Open the directory where AvensorOPC is installed.
- Open the file custom-config.properties.
- Modify the value for the property
connector.opcua.server.certificateValidityYears. - Rename or delete the previous pfx certificate in the-avensor-opc-installation folder/security. This is step is required to create a new certificate with the new validity.
- Restart the AvensorOPC. If the AvensorOPC is running as a Windows service, use the -avensor-opc-installation-folder/servicerestart.bat
Specify the OPC UA server certificate and password
By default, the AvensorOPC creates a pfx certificate for the OPC UA server automatically. It is optional to provide a custom pfx certificate.
Use the configuration below to specify the certificate filename and the password.
- Open the directory where AvensorOPC is installed.
- Open the file custom-config.properties
- Change the values for properties:
Certificate filename connector.opcua.server.certificateFile=certificate-filename.pfx Certificate password connector.opcua.server.certificatePassword=certificate-password - Restart the AvensorOPC. If AvensorOPC is running as a Windows service, use avensoropc-installation-folder/servicerestart.bat.
The custom pfx certificate must be put in avensor-opc-installationfolder/security folder. Create the folder if it does not exist.
If the file does not exists, the AvensorOPC will automatically create the pfx certificate with the specified password.
The OPC UA clients who have already configured must accept the new certificate.
Change OPCUA TCP Server Port
- Open the directory where AvensorOPC is installed.
- Open the file, custom-config.properties.
- Modify the value for the property: server.tcpPort.
- Restart the AvensorOPC.
If the AvensorOPC is running as a Windows service, run avensor-opc-installation-folder/servicerestart.bat.
Change webUI port
- Open the directory where AvensorOPC is installed.
- Open the file, custom-config.properties.
- Change the value for the property: server.port
- Restart the AvensorOPC. If AvensorOPC is running as a Windows service, run avensoropc-installation-folder/servicerestart.bat.
Change the actuator port
- Open the directory where AvensorOPC is installed.
- Open the file custom-config.properties.
- Change the value for the property: management.server.port
- Restart the AvensorOPC. If the AvensorOPC is running as a Windows service, run avensor-opc-installation-folder/servicerestart.bat.