Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Question regarding server certificate validation
June 14, 2019
12:46, EEST
Avatar
rocket science
Member
Members
Forum Posts: 77
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

Hi,

just a short question.

If I do not set a certificate validator like ‘client.setCertificateValidator(validator);’ is it then basically the same as accepting all server certificates?

Without setting a certificate validator I can still connect to all test servers I’ve installed – so I assume using no certificate listenener is more or less the same than just returning always ValidationResult.AcceptPermanently in the onValidate() method ?

Thank you!

June 17, 2019
13:58, EEST
Avatar
Teppo Uimonen
Moderator
Members

Moderators
Forum Posts: 21
Member Since:
November 28, 2018
sp_UserOfflineSmall Offline

Hi,

thanks for your questions. When you don’t set any Certificate Validator, all certificates are indeed accepted directly without checking or storing them anywhere.

Java SDK includes a DefaultCertificateValidator that you can use for default Certificate Validation. It includes another concept, a DefaultCertificateValidatorListener interface, where you can implement what to do with Certificate Validation results. See sample class MyCertificateValidationListener for an example. If you don’t set any DefaultCertificateValidatorListener, the Certificate will be judged by the Certificate Checks that it has passed or failed, resulting in rejecting or permanently accepting the Certificate.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
25 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1