I am stumped here. I am receiving an odd error unlike any previous certificate related errors I have seen. And I have not found anything relevant on to OPCUA on Google.
"Opc.Ua.ServiceResultException: Certificate has is expired or not yet valid. NotTimeValid: A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file."
Several months ago I had to stop work on this project. And when I came back to a couple of days ago the application can no longer connect to the Ignition server in Visual Studio.
There are no quarantined certificates. in Ignition server to approve.
<11/10/2020 8:55:09 AM> System.AggregateException: One or more errors occurred. —> Opc.Ua.ServiceResultException: Certificate has is expired or not yet valid. NotTimeValid: A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file.
—> Opc.Ua.ServiceResultException: Certificate has is expired or not yet valid. NotTimeValid: A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file.
at Opc.Ua.CertificateValidator.d__22.MoveNext()
— End of inner exception stack trace —
at Opc.Ua.CertificateValidator.Validate(X509Certificate2Collection chain)
at Opc.Ua.CertificateValidator.Validate(X509Certificate2 certificate)
at Opc.Ua.Configuration.ApplicationInstance.d__53.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Opc.Ua.Configuration.ApplicationInstance.<CheckApplicationInstanceCertificate>d__51.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()
at CommMgr.Classes.OPCUAComm.d__18.MoveNext() in D:\Zeppelin\Projects\Repos\CommMgr for PLC Tags\CommMgr\Classes\OPCUA.cs:line 93
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task
1.get_Result()
at CommMgr.CommMgr.OPCThreadFunction() in D:\Zeppelin\Projects\Repos\CommMgr for PLC Tags\CommMgr\CommMgr.cs:line 280
—> (Inner Exception #0) Opc.Ua.ServiceResultException: Certificate has is expired or not yet valid. NotTimeValid: A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file.
—> Opc.Ua.ServiceResultException: Certificate has is expired or not yet valid. NotTimeValid: A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file.