How to accept server certificate? #1065
aljoshakoecher
started this conversation in
General
Replies: 1 comment 3 replies
-
The server certificate is available in the If you are building a GUI client, you might take this opportunity to show the certificate to the user and ask if they want to trust it. If you wish to trust the certificate, then you can call |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
thank you for providing so many examples! Thanks to them, I was able to quickly setup a client connecting to a server with a username and password (security mode sign & encrypt) in order to browse the server's nodeset.
I only struggle with one thing at the moment: I have to manually move the server's certificate into the
trusted
folder of my keystore. How can I do this automatically?In the ClientRunnerExample , I can see that the server's certificate is added to the client's keystore. But in this example, the server is also created, so a reference to the server object exists.
How can I get the server's certificate while connecting with my client? I saw that there is a way to get the certificate from the session, but I don't really have a session because my connection fails due to the certificate not being trusted, right?
Beta Was this translation helpful? Give feedback.
All reactions