Skip to content

Commit

Permalink
[java] Recommitting self-signed certificate should not require certif…
Browse files Browse the repository at this point in the history
…icate file
  • Loading branch information
pujagani committed Jan 23, 2024
1 parent 72436c4 commit f9ff9b3
Showing 1 changed file with 1 addition and 2 deletions.
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 f9ff9b3

Please sign in to comment.