Skip to content
New issue

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

crypto change subject alternate errors to warning #1545

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

schroeder-
Copy link
Contributor

Only log a warning if the subject alternate name is not as the opc ua specs.
Fixes #1544

err = True
if hostname is not None:
san_dns_names = san.value.get_values_for_type(x509.DNSName)
if hostname not in san_dns_names:
_logger.error(f'certificate does not contain the hostname in DNSNames {hostname}. Some applications will check this.')
_logger.warning(f'certificate does not contain the hostname in DNSNames {hostname}. Some applications will check this.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you are at it, one should not use fstring for logging....

@oroulet oroulet merged commit f48b4f5 into FreeOpcUa:master Jan 12, 2024
5 checks passed
@alliehunter
Copy link

Hi! I was wondering when this would be released to use? I am not seeing this change on the latest version. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lower Certificate Error in Logs
3 participants