The V14.0 or above IP.21 OPC UA server certificate has a default expiration date of 1 year. If a certificate with higher expiration date is required, then the default certificate of IP.21 OPC UA Server should be uninstalled first, and then a new certificate with 5-year expiration should be created and installed manually.
In V14 or above versions, the Store Type of IP.21 OPC UA Server certificate is Directory, and the Store Path is 'C:\ProgramData\OPC Foundation\CertificateStores'. These details are configured in the OPC UA configuration file for IP.21 OPC UA Server at C:\ProgramData\AspenTech\InfoPlus.21\db21\group200\tsk_opcua_server.opcua.config.xml
IP.21OpcUAServerHost.exe /uninstall
An IP.21 OPC UA Server certificate with higher expiration date can be created with the help of Opc.Ua.CertificateGenerator.exe from OPC Foundation that is distributed along with IP.21 OPC UA Server. The -lm argument to Opc.Ua.CertificateGenerator.exe is used to configure the expiration date.
Please follow the steps below to create a V14.0 or above IP.21 OPC UA server certificate with higher expiration date.
mkdir c:\temp
CD "C:\Program Files\AspenTech\InfoPlus.21\db21\code"