Skip to content

Commit

Permalink
fix(ssl): Corrected SSL Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed May 4, 2018
1 parent 015b6f0 commit 89400a0
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -29,6 +29,7 @@
import org.kohsuke.stapler.export.Exported;
import sun.security.validator.ValidatorException;

import javax.net.ssl.SSLHandshakeException;
import java.io.IOException;
import java.util.Collections;
import java.util.Map;
Expand Down Expand Up @@ -532,7 +533,7 @@ public FormValidation doTestConnection(@QueryParameter("rocketServerUrl") final
LOGGER.fine("Done publishing message");
return FormValidation.ok("Success");
}
catch (ValidatorException e) {
catch (ValidatorException | SSLHandshakeException e) {
LOGGER.log(Level.SEVERE, "SSL error during trying to send rocket message", e);
return FormValidation.error(e, "SSL error", e);
}
Expand Down

0 comments on commit 89400a0

Please sign in to comment.