We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try to connect with user and password I get a Opc.Ua.ServiceResultException with this message: "SHA1 signed certificates are not trusted."
This is my code
` OpcUaClientBuilder builder = new OpcUaClientBuilder() .WithEndpoint(url) .WithAutoAcceptUntrustedCertificate(true) .WithAccount(user, password) .WithEventCertificateValidationHandler(new CertificateValidationEventHandler(OnCertificateValidation)) .WithClientId(clientName);
private void OnCertificateValidation(CertificateValidator validator, CertificateValidationEventArgs e) { if (e.Error.StatusCode == StatusCodes.BadCertificateUntrusted) { e.Accept = true; } } `
How can I connect to my opc with just user and passowrd? How I can set RejectSHA1SignedCertificates to false?
Regards.
The text was updated successfully, but these errors were encountered:
.WithConfiguration((ac) => { ac.CertificateValidator = new CertificateValidator() { RejectSHA1SignedCertificates = false }; }) Add this
.WithConfiguration((ac) => { ac.CertificateValidator = new CertificateValidator() { RejectSHA1SignedCertificates = false }; })
Sorry, something went wrong.
No branches or pull requests
When I try to connect with user and password I get a Opc.Ua.ServiceResultException with this message:
"SHA1 signed certificates are not trusted."
This is my code
`
OpcUaClientBuilder builder = new OpcUaClientBuilder()
.WithEndpoint(url)
.WithAutoAcceptUntrustedCertificate(true)
.WithAccount(user, password)
.WithEventCertificateValidationHandler(new CertificateValidationEventHandler(OnCertificateValidation))
.WithClientId(clientName);
private void OnCertificateValidation(CertificateValidator validator, CertificateValidationEventArgs e)
{
if (e.Error.StatusCode == StatusCodes.BadCertificateUntrusted)
{
e.Accept = true;
}
}
`
How can I connect to my opc with just user and passowrd?
How I can set RejectSHA1SignedCertificates to false?
Regards.
The text was updated successfully, but these errors were encountered: