Skip to content

Commit f9ff9b3

Browse files
committed
[java] Recommitting self-signed certificate should not require certificate file
1 parent 72436c4 commit f9ff9b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

java/src/org/openqa/selenium/grid/security/SecretOptions.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ public SecretOptions(Config config) {
4141

4242
public Secret getRegistrationSecret() {
4343
String secret = "";
44-
if ((isSecure() || isSelfSigned())
45-
&& !config.get(SERVER_SECTION, "registration-secret").isPresent()) {
44+
if ((isSecure()) && !config.get(SERVER_SECTION, "registration-secret").isPresent()) {
4645
try {
4746
secret =
4847
getEncoder()

0 commit comments

Comments
 (0)