Skip to content

Commit

Permalink
[java] Self-signed certificate should not require certificate file (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani authored Dec 8, 2023
1 parent 68b9260 commit ae655ba
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public SecretOptions(Config config) {

public Secret getRegistrationSecret() {
String secret = "";
if ((isSecure() || isSelfSigned())
&& !config.get(SERVER_SECTION, "registration-secret").isPresent()) {
if ((isSecure()) && !config.get(SERVER_SECTION, "registration-secret").isPresent()) {
try {
secret =
getEncoder()
Expand Down

0 comments on commit ae655ba

Please sign in to comment.