@@ -27,12 +27,12 @@ private ImageTag() {
2727 }
2828
2929 public static ResultContainer <List <String >> getTags (String image , String registry , String filter ,
30- String user , String password , Ordering ordering ) {
30+ String user , String password , Ordering ordering , boolean verifySsl ) {
3131 ResultContainer <List <String >> container = new ResultContainer <>(Collections .emptyList ());
3232
3333 String [] authService = getAuthService (registry );
3434 String token = getAuthToken (authService , image , user , password );
35- ResultContainer <List <VersionNumber >> tags = getImageTagsFromRegistry (image , registry , authService [0 ], token );
35+ ResultContainer <List <VersionNumber >> tags = getImageTagsFromRegistry (image , registry , authService [0 ], token , verifySsl );
3636
3737 if (tags .getErrorMsg ().isPresent ()) {
3838 container .setErrorMsg (tags .getErrorMsg ().get ());
@@ -172,12 +172,13 @@ private static String getAuthToken(String[] authService, String image, String us
172172 }
173173
174174 private static ResultContainer <List <VersionNumber >> getImageTagsFromRegistry (String image , String registry ,
175- String authType , String token ) {
175+ String authType , String token , boolean verifySsl ) {
176176 ResultContainer <List <VersionNumber >> resultContainer = new ResultContainer <>(new ArrayList <>());
177177 String url = registry + "/v2/" + image + "/tags/list" ;
178178
179179 Unirest .config ().reset ();
180180 Unirest .config ().enableCookieManagement (false ).interceptor (errorInterceptor );
181+ Unirest .config ().verifySsl (verifySsl );
181182 HttpResponse <JsonNode > response = Unirest .get (url )
182183 .header ("Authorization" , authType + " " + token )
183184 .asJson ();
0 commit comments