Skip to content

Commit

Permalink
Display only the import certificate message for the GET endpoint (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbisutti authored Nov 21, 2022
1 parent c03c8c2 commit 21deab5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,20 @@ private static String getCustomJavaKeystorePath() {
}

private static String getSslFriendlyExceptionAction(String url) {
if (!url.contains("profiles")) { // ../api/profiles/../appId
return "";
}
String customJavaKeyStorePath = getCustomJavaKeystorePath();
if (customJavaKeyStorePath != null) {
return "Please import the SSL certificate from "
return "Please import the ROOT SSL certificate from "
+ getHostOnly(url)
+ ", into your custom java key store located at:"
+ NEWLINE
+ customJavaKeyStorePath
+ NEWLINE
+ "Learn more about importing the certificate here: https://go.microsoft.com/fwlink/?linkid=2151450";
}
return "Please import the SSL certificate from "
return "Please import the ROOT SSL certificate from "
+ getHostOnly(url)
+ ", into the default java key store located at:"
+ NEWLINE
Expand Down

0 comments on commit 21deab5

Please sign in to comment.