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

Add ability to fetch endpoints from server #184

Merged
merged 25 commits into from
Dec 9, 2024

Conversation

sgoll
Copy link
Contributor

@sgoll sgoll commented Dec 5, 2024

Description

This adds ClientBuilder::get_endpoints() to connect to a remote OPC UA server and fetch its endpoints.

@sgoll
Copy link
Contributor Author

sgoll commented Dec 5, 2024

Draft because this depends on #183.

@sgoll sgoll force-pushed the fetch-certificate branch from ad5cb75 to d348ddd Compare December 5, 2024 17:32
@sgoll sgoll force-pushed the fetch-certificate branch from 9382029 to 71370a0 Compare December 6, 2024 16:59
@sgoll sgoll changed the title Add ability to fetch remote server certificate Add ability to fetch endpoints from server Dec 6, 2024
@sgoll sgoll force-pushed the fetch-certificate branch 2 times, most recently from b2aada6 to eff61b9 Compare December 9, 2024 12:27
@sgoll sgoll marked this pull request as ready for review December 9, 2024 12:30
@sgoll sgoll requested a review from uklotzde December 9, 2024 12:34
src/ssl.rs Outdated Show resolved Hide resolved
// Apply heuristic to get certificates from both DER and PEM format. Try PEM first because
// the implementation first extracts DER data from PEM and can tell us whether this failed
// (or the certificate itself was invalid).
X509Certificate::from_pem(self.as_bytes()).or_else(|err| match err {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Even though the new code does not really improve readability it emphasizes the intended fallback behavior.

@uklotzde uklotzde merged commit d6a77d3 into HMIProject:main Dec 9, 2024
13 checks passed
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.

2 participants