OPCUA Server Certificate Period

Forum Home › Forums › Communicating with Devices › OPC › OPCUA Server Certificate Period

Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #18560
    dhiraj@factorian.io
    Participant

    Hi,

    I have trouble with Rapid Scada Certificate Generation, The certificate was generated for 1 year period,
    Is there a way we can control/change the time period for certificate of OPCUA Server?

    #18561
    Mikhail
    Moderator

    Hi,

    The current version of the DrvOpcUa driver should generate certificates with a 10-year validity period.

    Please provide the additional info:
    – What DrvOpcUa version is used?
    – How did you check the certificate period?

    #18562
    dhiraj@factorian.io
    Participant

    Hi Mikhail,
    I am using 6.1.2.0 version of DrvOpcUA and i checked the Certificate period from folder in ” \ProgramData\OPC Foundation\pki\own\certs ” and also from UA browser where in it says my certificate is expired.

    Let me know

    #18563
    Mikhail
    Moderator

    Hi,
    DrvOpcUa 6.1.2.0 (February 27, 2026) is up to date.
    Is there a chance that the existing certificate was created by the earlier version of the driver?
    Try deleting it, so the driver will create a new one.

    #18564
    dhiraj@factorian.io
    Participant

    Yes, The certificate was created by old version, which i had deleted, but then also it created for 1 year only.
    What i did:
    1. Update the Rapid Scada to latest version
    2. delete the certificate
    3. restarted/update again
    4. Still got 1 year certificate

    Can i create custom expiry time certificate? If no what is the solution

    #18565
    Mikhail
    Moderator

    The old driver stored certificates in some odd Windows storage. It was difficult to remove them.

    Please check if there are
    C:\Program Files\SCADA\ScadaComm\Config\DrvOpcUa.View.xml
    C:\Program Files\SCADA\ScadaComm\Config\DrvOpcUa.Logic.xml
    files?

    If so, remove then from the project and from the runtime directory. They contain some outdated setting where to store certificates.

    #18566
    Mikhail
    Moderator

    4. Still got 1 year certificate

    Is it generated with a new expiration date or the same?

    #18575
    dhiraj@factorian.io
    Participant

    Hi,
    Still same, I have deleted both the files(DrvOpcUa.View.xml & DrvOpcUa.Logic.xml), stopped and restarted from services all Rapid services, deleted the old certificate but again got 1 year certificate.
    How should i solve this?
    I am not able to find the Certificate generation script also, if i can change manually in that

    #18576
    manjey73
    Participant

    You need to find the certificates, including those in the trusted list, delete them, and then restart the line.

    #18577
    manjey73
    Participant

    Yes, I found the certificate by searching for the *.der file.
    /root/.locale/share/OPC Foundation/pki — everything is there, both the certificate and the key.

    In addition to the folder c:\ProgramData\OPC Foundation\pki\trusted\certs\
    I also ran certmgr.msc via Run and removed it from the UA_MachineDefault branch
    After that, a new certificate with a validity period of 1 year was created

    Depending on the system, see the options.

    #18578
    manjey73
    Participant

    The topic is old; back then, the certificates were valid for 1 year.
    The point is to delete the certificates so that it doesn’t pull in the old data.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.